[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 109ms (Views: 44.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 50ms (Views: 0.4ms | ActiveRecord: 6.7ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '212bcacd7cbc5cb1a8dc44e8d6ecb7f7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:57', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:57', 'format', 'journal', 969081274, 'journal')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:57', 'isbn', 1, '121212', 969081274, '121212')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:54:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081274, '212bcacd7cbc5cb1a8dc44e8d6ecb7f7')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081079"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081079 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081079 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969081079
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081079, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081079\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081274 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081274)
Redirected to http://test.host/resolve?umlaut.request_id=969081079&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A54%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 95ms (ActiveRecord: 33.0ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa864e3b3295ac56776e1086aa887d2a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:58', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'format', 'journal', 969081275, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'isbn', 1, '121212', 969081275, '121212')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:54:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081275, 'fa864e3b3295ac56776e1086aa887d2a')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081080, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081080"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081080 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081080 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070011860
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081080, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070011860\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081275 LIMIT 1
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081275)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081080&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A54%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4fab8bf5f91ce1352a0eadaad54ecd57' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:58', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'format', 'journal', 969081276, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'isbn', 1, '121212', 969081276, '121212')
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:54:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081276, '4fab8bf5f91ce1352a0eadaad54ecd57')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081081, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081081"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081081 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081081 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081081 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:54:58', NULL, 969081081, 'BorrowDirect', 'in_progress', '2015-02-05 17:54:58')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:54:58' WHERE `dispatched_services`.`id` = 1447[0m
[1m[35m (21.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081081, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081276 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081276)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081081&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A54%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 96ms (ActiveRecord: 74.8ms)
[1m[35mDispatchedService Load (4.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081081
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081081 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081081 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:54:58' WHERE `dispatched_services`.`id` = 1447
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011863[0m
[1m[35m (17.1ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '238e57902b9a945e921bff221b8f262f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:58', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'format', 'journal', 969081277, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'isbn', 1, '121212', 969081277, '121212')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:54:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081277, '238e57902b9a945e921bff221b8f262f')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081082"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081082 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081082 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:54:58', 969081082, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081277 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081277)
Redirected to http://test.host/resolve?umlaut.request_id=969081082&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A54%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 63ms (ActiveRecord: 54.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:54:58 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd6e01f254d5411eba904b68f7809dd3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:54:58', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'format', 'journal', 969081278, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:54:58', 'isbn', 1, '9789810743734', 969081278, '9789810743734')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:54:58', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081278, 'dd6e01f254d5411eba904b68f7809dd3')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081083[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:54:58', NULL, 969081083, 'test_bd', 'queued', '2015-02-05 17:54:58')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:54:58' WHERE `dispatched_services`.`id` = 1448
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081083 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081278)[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081278)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081083) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081083)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081083 AND `dispatched_services`.`id` = 1448 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081083, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.034691s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:55:06' WHERE `dispatched_services`.`id` = 1448
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081083 LIMIT 1
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081278 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081278)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (4.0ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081083 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (13.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (4.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (22.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (37.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081083 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (1.1ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081278
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (15.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (1.4ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081083
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 7950ms (Views: 284.0ms | ActiveRecord: 136.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_With_API_use_disabled,_only_display_link
--------------------------------------------------------------------------
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:55:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f75b02cebc9b63bdc3242b673de971f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:06', 'some book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:06', 'format', 'book', 969081279, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:06', 'genre', 1, 'book', 969081279, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:06', 'author', 1, 'smith', 969081279, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:06', 'title', 1, 'some book', 969081279, 'Some Book')
[1m[36m (35.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:55:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081279, '5f75b02cebc9b63bdc3242b673de971f')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081084
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:06', NULL, 969081084, 'BorrowDirect', 'queued', '2015-02-05 17:55:06')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:06' WHERE `dispatched_services`.`id` = 1449[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081084 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081279)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081279)[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081084) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081084)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081084 AND `dispatched_services`.`id` = 1449 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081084, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (35.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:08' WHERE `dispatched_services`.`id` = 1449[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081084 LIMIT 1[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081279 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081279)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.5ms)
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081084 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081084 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081279
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081084
[1m[36m (21.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 1658ms (Views: 45.6ms | ActiveRecord: 162.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:55:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9a5d7f3fad00e9974f7a747a7208c15' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:08', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'format', 'journal', 969081280, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'genre', 1, 'article', 969081280, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'title', 1, 'foo', 969081280, 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'author', 1, 'bar', 969081280, 'bar')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:55:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081280, 'd9a5d7f3fad00e9974f7a747a7208c15')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081085
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:08', NULL, 969081085, 'BorrowDirect', 'queued', '2015-02-05 17:55:08')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:08' WHERE `dispatched_services`.`id` = 1450[0m
[1m[35m (22.5ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081085 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081280)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081280)[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081085) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081085)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081085 AND `dispatched_services`.`id` = 1450 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:08' WHERE `dispatched_services`.`id` = 1450
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081085 LIMIT 1
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.9ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081280 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081280)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081085 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081085 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081280[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081085[0m
[1m[35m (17.5ms)[0m COMMIT
Completed 200 OK in 288ms (Views: 40.6ms | ActiveRecord: 140.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0bb74bbdc84de94b84ab39f00af9525c' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:08', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'format', 'book', 969081281, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'genre', 1, 'book', 969081281, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'title', 1, 'foo', 969081281, 'foo')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:55:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081281, '0bb74bbdc84de94b84ab39f00af9525c')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081086 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:08', NULL, 969081086, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:55:08')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:08' WHERE `dispatched_services`.`id` = 1451
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081086" for 127.0.0.1 at 2015-02-05 12:55:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081086"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081086 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081281 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081281)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081086
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081086
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081086 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081086 [["request_id", 969081086]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081281 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081281)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081086 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081086 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081281[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081086[0m
[1m[35m (17.9ms)[0m COMMIT
Completed 200 OK in 112ms (Views: 45.7ms | ActiveRecord: 51.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0e795deef9c27bf8220ee2955d6390e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:08', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'format', 'journal', 969081282, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:08', 'isbn', 1, '9789810743734', 969081282, '9789810743734')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081282, 'a0e795deef9c27bf8220ee2955d6390e')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081087[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:09', NULL, 969081087, 'BorrowDirect', 'queued', '2015-02-05 17:55:09')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:09' WHERE `dispatched_services`.`id` = 1452
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081282)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282)
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081087) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081087)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`id` = 1452 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081087, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:11', 'Choose your delivery location', 969081087, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:11' WHERE `dispatched_services`.`id` = 1452[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.7ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081282 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081087 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.4ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (22.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (23.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081282[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.5ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081087[0m
[1m[35m (18.7ms)[0m COMMIT
Completed 200 OK in 3153ms (Views: 62.1ms | ActiveRecord: 130.6ms)
Started GET "/borrow_direct/BorrowDirect/969081087?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:55:12 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081087"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081087 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:55:12' WHERE `dispatched_services`.`id` = 1452[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:12', 969081087, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081282 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081087&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 63ms (ActiveRecord: 45.0ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:55:12' WHERE `dispatched_services`.`id` = 1452
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011869[0m
[1m[35m (16.8ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081087&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081087", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081282 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081087[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081087 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087[0m [["request_id", 969081087]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081282 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081282)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081087 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081087 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081282
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081087
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 115ms (Views: 47.6ms | ActiveRecord: 49.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:55:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f6b7b33fe870aa7bf986018f4aba05f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:12', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:12', 'format', 'journal', 969081283, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:12', 'isbn', 1, '0109836413', 969081283, '0109836413')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:55:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081283, '3f6b7b33fe870aa7bf986018f4aba05f')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081088
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:12', NULL, 969081088, 'BorrowDirect', 'queued', '2015-02-05 17:55:12')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:12' WHERE `dispatched_services`.`id` = 1453[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081088 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081283)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081283)[0m
[1m[35mServiceResponse Load (48.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081088) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081088)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081088 AND `dispatched_services`.`id` = 1453 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081088, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (25.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:20', 'This item is not currently available from BorrowDirect', 969081088, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (24.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:20' WHERE `dispatched_services`.`id` = 1453
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081088 LIMIT 1
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (4.0ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081283 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081283)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081088 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081088 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081283[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081088[0m
[1m[35m (18.3ms)[0m COMMIT
Completed 200 OK in 7975ms (Views: 45.6ms | ActiveRecord: 132.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:20 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9ad5745a657157d174cba062e8b4622' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:20', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:20', 'format', 'journal', 969081284, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:20', 'isbn', 1, '9789810743734', 969081284, '9789810743734')[0m
[1m[35m (23.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081284, 'd9ad5745a657157d174cba062e8b4622')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081089[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:20', NULL, 969081089, 'BorrowDirect', 'queued', '2015-02-05 17:55:20')[0m
[1m[35m (22.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:20' WHERE `dispatched_services`.`id` = 1454
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081284)[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081089) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081089)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`id` = 1454 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081089, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:21', 'Choose your delivery location', 969081089, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (24.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:21' WHERE `dispatched_services`.`id` = 1454[0m
[1m[35m (27.2ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[36mDispatchedService Load (2.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081284 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081089 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.5ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (11.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081284[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081089[0m
[1m[35m (17.3ms)[0m COMMIT
Completed 200 OK in 949ms (Views: 50.6ms | ActiveRecord: 144.5ms)
Started GET "/borrow_direct/BorrowDirect/969081089?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:55:21 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081089"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081089 ORDER BY id ASC
[1m[36mDispatchedService Load (47.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:55:21' WHERE `dispatched_services`.`id` = 1454[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:21', 969081089, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081284 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081089&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 109ms (ActiveRecord: 90.0ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:21' WHERE `dispatched_services`.`id` = 1454
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070011874[0m
[1m[35m (16.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081089&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081089", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:21-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081284 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081089[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081089 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089[0m [["request_id", 969081089]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081284 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081284)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081089 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081089 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081284
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081089
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 112ms (Views: 43.1ms | ActiveRecord: 50.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c5b5c1d9a3540e8d63feb861cdb13aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:21', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:21', 'format', 'journal', 969081285, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:21', 'isbn', 1, '9789810743734', 969081285, '9789810743734')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081285, '1c5b5c1d9a3540e8d63feb861cdb13aa')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081090
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:21', NULL, 969081090, 'BorrowDirect', 'queued', '2015-02-05 17:55:21')
[1m[36m (21.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:21' WHERE `dispatched_services`.`id` = 1455[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081090 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081285)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081285)[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081090) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081090)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081090 AND `dispatched_services`.`id` = 1455 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081090, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:22', 'Choose your delivery location', 969081090, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:22' WHERE `dispatched_services`.`id` = 1455
[1m[36m (25.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081090 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (3.7ms)
[1m[35mDispatchedService Load (2.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081285 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081285)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081090 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.5ms)
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081090 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (11.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081090 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081285
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081090
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 1145ms (Views: 50.1ms | ActiveRecord: 139.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '960b3a6c0282e3e4185e550b4f61dc55' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:22', '9789810743734')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:22', 'format', 'journal', 969081286, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:22', 'isbn', 1, '9789810743734', 969081286, '9789810743734')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081286, '960b3a6c0282e3e4185e550b4f61dc55')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081091
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081091
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:22', NULL, 969081091, 'BorrowDirect', 'queued', '2015-02-05 17:55:22')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:22' WHERE `dispatched_services`.`id` = 1456[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081091 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081286)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081286)[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081091) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081091)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081091 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081091 AND `dispatched_services`.`id` = 1456 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fea445358840ba354f7f0ddaf18ce173' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:31', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:31', 'format', 'journal', 969081287, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:31', 'isbn', 1, '9789810743734', 969081287, '9789810743734')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081287, 'fea445358840ba354f7f0ddaf18ce173')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081092
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:31', NULL, 969081092, 'test_bd', 'queued', '2015-02-05 17:55:31')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:31' WHERE `dispatched_services`.`id` = 1457[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081092 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081287)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081287)[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081092) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081092)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081092 AND `dispatched_services`.`id` = 1457 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081092, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003931s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:55:31' WHERE `dispatched_services`.`id` = 1457[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081092 LIMIT 1[0m
[1m[35mDispatchedService Load (8.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081287 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081287)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081092 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081092 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (63.6ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081287[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (42.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081092[0m
[1m[35m (17.5ms)[0m COMMIT
Completed 200 OK in 690ms (Views: 170.3ms | ActiveRecord: 159.7ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_With_API_use_disabled,_only_display_link
--------------------------------------------------------------------------
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:55:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4d536afb6321ac252d34d4f9a0ea8ec' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:32', 'some book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'format', 'book', 969081288, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'genre', 1, 'book', 969081288, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'author', 1, 'smith', 969081288, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'title', 1, 'some book', 969081288, 'Some Book')[0m
[1m[35m (22.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:55:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081288, 'a4d536afb6321ac252d34d4f9a0ea8ec')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081093[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:32', NULL, 969081093, 'BorrowDirect', 'queued', '2015-02-05 17:55:32')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1458
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081093 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081288)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081288)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081093) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081093)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081093 AND `dispatched_services`.`id` = 1458 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081093, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1458
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081093 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081288 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081288)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081093 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081093 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081288[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081093[0m
[1m[35m (21.3ms)[0m COMMIT
Completed 200 OK in 295ms (Views: 19.5ms | ActiveRecord: 140.0ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:55:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e788216782f5b38c4788598ed48f619d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:32', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'format', 'journal', 969081289, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'genre', 1, 'article', 969081289, 'article')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'title', 1, 'foo', 969081289, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'author', 1, 'bar', 969081289, 'bar')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:55:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081289, 'e788216782f5b38c4788598ed48f619d')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081094[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:32', NULL, 969081094, 'BorrowDirect', 'queued', '2015-02-05 17:55:32')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1459
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081094 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081289)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081289)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081094) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081094)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081094 AND `dispatched_services`.`id` = 1459 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1459[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081094 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081289 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081289)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081094 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081094 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081289
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081094
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 244ms (Views: 17.7ms | ActiveRecord: 147.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6aece16933b6a8d76c070e86d44f8a98' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:32', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'format', 'book', 969081290, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'genre', 1, 'book', 969081290, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'title', 1, 'foo', 969081290, 'foo')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:55:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081290, '6aece16933b6a8d76c070e86d44f8a98')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081095 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:32', NULL, 969081095, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:55:32')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1460[0m
[1m[35m (17.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081095" for 127.0.0.1 at 2015-02-05 12:55:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081095"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081095 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081290 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081290)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081095[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081095[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081095 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081095[0m [["request_id", 969081095]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081290 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081290)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081095 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081095 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081290
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081095
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 18.7ms | ActiveRecord: 50.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77680337ab0f28e6f4dbbc8fa61268dc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:32', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'format', 'journal', 969081291, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:32', 'isbn', 1, '9789810743734', 969081291, '9789810743734')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081291, '77680337ab0f28e6f4dbbc8fa61268dc')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081096
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:32', NULL, 969081096, 'BorrowDirect', 'queued', '2015-02-05 17:55:32')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1461[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081291)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291)[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081096) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081096)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`id` = 1461 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081096, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:32', 'Choose your delivery location', 969081096, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:32' WHERE `dispatched_services`.`id` = 1461
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081291 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081096 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081291
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081096
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 285ms (Views: 27.3ms | ActiveRecord: 132.1ms)
Started GET "/borrow_direct/BorrowDirect/969081096?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:55:33 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081096"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081096 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1461
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:33', 969081096, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081291 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081096&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
Completed 303 See Other in 60ms (ActiveRecord: 44.4ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1461[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011881
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081096&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081096", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:33-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081291 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081096
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081096 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 [["request_id", 969081096]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081291 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081291)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081096 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081096 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081291[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081096[0m
[1m[35m (16.5ms)[0m COMMIT
Completed 200 OK in 80ms (Views: 21.5ms | ActiveRecord: 49.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:55:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b660ecd48ff9a7d8120c49a939278b6' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:33', '0109836413')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:33', 'format', 'journal', 969081292, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:33', 'isbn', 1, '0109836413', 969081292, '0109836413')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:55:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081292, '8b660ecd48ff9a7d8120c49a939278b6')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081097[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:33', NULL, 969081097, 'BorrowDirect', 'queued', '2015-02-05 17:55:33')[0m
[1m[35m (21.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1462
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081097 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081292)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081292)
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081097) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081097)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081097 AND `dispatched_services`.`id` = 1462 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081097, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:33', 'This item is not currently available from BorrowDirect', 969081097, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1462[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081097 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081292 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081292)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081097 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081097 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081292
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081097
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 278ms (Views: 19.8ms | ActiveRecord: 133.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c5f1bf74898c6b36349e0d6aba81ddc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:33', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:33', 'format', 'journal', 969081293, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:33', 'isbn', 1, '9789810743734', 969081293, '9789810743734')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081293, '6c5f1bf74898c6b36349e0d6aba81ddc')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081098
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:33', NULL, 969081098, 'BorrowDirect', 'queued', '2015-02-05 17:55:33')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1463[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081293)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293)[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081098) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081098)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`id` = 1463 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081098, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:33', 'Choose your delivery location', 969081098, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1463
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081293 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081098 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081293
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081098
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 277ms (Views: 23.1ms | ActiveRecord: 128.5ms)
Started GET "/borrow_direct/BorrowDirect/969081098?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:55:33 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081098"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081098 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1463
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:33', 969081098, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (22.9ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081293 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081098&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 68ms (ActiveRecord: 51.4ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:33' WHERE `dispatched_services`.`id` = 1463[0m
[1m[35m (23.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070011886
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081098&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081098", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:33-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081293 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081098
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081098 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 [["request_id", 969081098]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081293 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081293)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081098 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081098 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081293[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081098[0m
[1m[35m (19.1ms)[0m COMMIT
Completed 200 OK in 77ms (Views: 17.4ms | ActiveRecord: 50.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c92e35ec3376fcddca0e95a9f1f0d46f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:34', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:34', 'format', 'journal', 969081294, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:34', 'isbn', 1, '9789810743734', 969081294, '9789810743734')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081294, 'c92e35ec3376fcddca0e95a9f1f0d46f')
[1m[36m (23.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081099[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:34', NULL, 969081099, 'BorrowDirect', 'queued', '2015-02-05 17:55:34')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:34' WHERE `dispatched_services`.`id` = 1464
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081099 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081294)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081294)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081099) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081099)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081099 AND `dispatched_services`.`id` = 1464 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081099, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:34', 'Choose your delivery location', 969081099, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:34' WHERE `dispatched_services`.`id` = 1464[0m
[1m[35m (64.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081099 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081294 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081294)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081099 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081099 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081099 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081294
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (22.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081099
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 354ms (Views: 24.0ms | ActiveRecord: 161.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:55:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4dbdc1e5804dd6687869736c4449b7d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:34', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:34', 'format', 'journal', 969081295, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:34', 'isbn', 1, '9789810743734', 969081295, '9789810743734')
[1m[36m (30.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081295, 'd4dbdc1e5804dd6687869736c4449b7d')[0m
[1m[35m (40.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081100
[1m[36m (34.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:34', NULL, 969081100, 'BorrowDirect', 'queued', '2015-02-05 17:55:34')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:34' WHERE `dispatched_services`.`id` = 1465[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081295)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295)[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081100) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081100)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`id` = 1465 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081100, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:34', 'Choose your delivery location', 969081100, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:55:34' WHERE `dispatched_services`.`id` = 1465
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081295 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081100 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081295
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081100
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 386ms (Views: 21.6ms | ActiveRecord: 182.9ms)
Started GET "/borrow_direct/BorrowDirect/969081100" for 127.0.0.1 at 2015-02-05 12:55:34 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081100"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081100 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:34', 969081100, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081295 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081100&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 23.2ms)
Started GET "/resolve?umlaut.request_id=969081100&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:55:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081100", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:55:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081295 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081100[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100[0m [["request_id", 969081100]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081295 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081295)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081100 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081100 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081100 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081295[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081100[0m
[1m[35m (17.6ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 21.8ms | ActiveRecord: 49.7ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b10b9448bd5b26c2c5512d9c2a4e5ca' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '9789810743734')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081296, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '9789810743734', 969081296, '9789810743734')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081296, '9b10b9448bd5b26c2c5512d9c2a4e5ca')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081101 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081101, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f846dfc3c6f5645a65bec2df40c417fb' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 17:55:35', 'biological foundations of language', '1967')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'book', 969081297, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'auinit', 1, 'eh', 969081297, 'EH')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'aulast', 1, 'lenneberg', 969081297, 'Lenneberg')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'title', 1, 'biological foundations of language', 969081297, 'Biological foundations of language')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'genre', 1, 'book', 969081297, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'date', 1, '1967', 969081297, '1967')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081297, 'info:sid/google', 'f846dfc3c6f5645a65bec2df40c417fb')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081102 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081102, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081102 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081102, 'test_bd', 'successful', '2015-02-05 17:55:35')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1466
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081102
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f8bbb7b30b2f2c7c2c6385a1bf7917c' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 17:55:35', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081298, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'auinit', 1, 'rd', 969081298, 'RD')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'aulast', 1, 'kaplan', 969081298, 'Kaplan')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'atitle', 1, 'the coming anarchy', 969081298, 'The coming anarchy')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'title', 1, 'the atlantic monthly', 969081298, 'The Atlantic monthly')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'volume', 1, '273', 969081298, '273')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'issue', 1, '2', 969081298, '2')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'date', 1, '1994', 969081298, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'spage', 1, '44', 969081298, '44')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'issn', 1, '1072-7825', 969081298, '1072-7825')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081298, 'info:sid/google', '8f8bbb7b30b2f2c7c2c6385a1bf7917c')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081103 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081103, 'test_bd', 'successful', '2015-02-05 17:55:35')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1467[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081103[0m
[1m[35mServiceResponse Exists (1.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081103 LIMIT 1
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6db202347231373034813ea834ba9df3' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:35', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081299, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081299, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'aulast', 1, 'grimes', 969081299, 'Grimes')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081299, '6db202347231373034813ea834ba9df3')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081104, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081104 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.8ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e996d7f692f063468ee014c66e85ff8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081300, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '9789810743734', 969081300, '9789810743734')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081300, '8e996d7f692f063468ee014c66e85ff8')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081105 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081105, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:35', 'Choose your delivery location', 969081105, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081105 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081105, 'test_bd', 'successful', '2015-02-05 17:55:35')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1468
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081105
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e89e9fdebbbb27d3740ff09f181357b0' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081301, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '0109836413', 969081301, '0109836413')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081301, 'e89e9fdebbbb27d3740ff09f181357b0')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081106 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081106, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:35', 'This item is not currently available from BorrowDirect', 969081106, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081106 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081106, 'test_bd', 'successful', '2015-02-05 17:55:35')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1469
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081106
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d83c6fe1165748a564079d8fe4952b7' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081302, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '000000000', 969081302, '000000000')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081302, '5d83c6fe1165748a564079d8fe4952b7')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081107 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081107, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:35', 'This item is not currently available from BorrowDirect', 969081107, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081107 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:35', NULL, 969081107, 'test_bd', 'successful', '2015-02-05 17:55:35')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:35' WHERE `dispatched_services`.`id` = 1470
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081107
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '36cb7de385333fc13e399c93303ab199' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:35', '9789810743734')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'format', 'journal', 969081303, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:35', 'isbn', 1, '9789810743734', 969081303, '9789810743734')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:55:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081303, '36cb7de385333fc13e399c93303ab199')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081108 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081108, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081108 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081108, 'test_bd', 'failed_temporary', '2015-02-05 17:55:36')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:230:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1471[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081108[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ff601fe69caece4ff341e201451e9658' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:36', 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081304, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'title', 1, 'title', 969081304, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'author', 1, 'au', 969081304, 'au')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081304, 'ff601fe69caece4ff341e201451e9658')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081109, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081109 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081109, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081109 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081109, 'test_bd', 'successful', '2015-02-05 17:55:36')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1472
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081109
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea9086a9ff84bf101b594f178edec3c3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:36', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081305, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'title', 1, 'title', 969081305, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'author', 1, 'au', 969081305, 'au')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081305, 'ea9086a9ff84bf101b594f178edec3c3')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081110, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081110 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081110, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081110 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081110, 'test_bd', 'successful', '2015-02-05 17:55:36')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1473[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081110[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa2ceb79ecff9b69c7534e1d7500728f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:36', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081306, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'title', 1, 'title', 969081306, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'author', 1, 'au', 969081306, 'au')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081306, 'fa2ceb79ecff9b69c7534e1d7500728f')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081111, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081111 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081111 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081111, 'test_bd', 'successful', '2015-02-05 17:55:36')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1474[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081111[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba1f37d4ab84d1532063f2ac4a38fada' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:36', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081307, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'isbn', 1, '121212', 969081307, '121212')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081307, 'ba1f37d4ab84d1532063f2ac4a38fada')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081112"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081112 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081112 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969081112
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081112, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081112\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081307 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081307)
Redirected to http://test.host/resolve?umlaut.request_id=969081112&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.7ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2271e8c51db7161d1d70e5020b972112' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:36', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081308, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'isbn', 1, '121212', 969081308, '121212')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081308, '2271e8c51db7161d1d70e5020b972112')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081113, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081113"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081113 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081113 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070011908
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081113, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070011908\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081308 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081308)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081113&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed0cd1ceaab350fcab46123b35764197' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:36', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081309, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'isbn', 1, '121212', 969081309, '121212')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081309, 'ed0cd1ceaab350fcab46123b35764197')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081114, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081114"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081114 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081114 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081114 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:36', NULL, 969081114, 'BorrowDirect', 'in_progress', '2015-02-05 17:55:36')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1475[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081114, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081309 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081309)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081114&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 74ms (ActiveRecord: 64.0ms)
[1m[35mDispatchedService Load (2.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081114
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081114 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081114 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:55:36' WHERE `dispatched_services`.`id` = 1475
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011911[0m
[1m[35m (16.6ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '229f1f3b5f4fb4c89f1c4268641e0140' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:55:36', '121212')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081310, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'isbn', 1, '121212', 969081310, '121212')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:55:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081310, '229f1f3b5f4fb4c89f1c4268641e0140')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081115"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081115 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081115 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:36', 969081115, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081310 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081310)
Redirected to http://test.host/resolve?umlaut.request_id=969081115&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A55%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.5ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '462c7034d55e4367fc83a72c4c9c475e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:55:36', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'format', 'journal', 969081311, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'title', 1, 'title', 969081311, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:55:36', 'author', 1, 'au', 969081311, 'au')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:55:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081311, '462c7034d55e4367fc83a72c4c9c475e')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:55:37', 969081116, '--- {}\n', 'test_holding', 'holding')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:55:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081116, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081116 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:55:37', NULL, 969081116, 'test_bd', 'successful', '2015-02-05 17:55:37')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:55:37' WHERE `dispatched_services`.`id` = 1476
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081116
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081116 ORDER BY id ASC[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0a1e7285a86bf50154a5a94723bd406' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:02', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'format', 'journal', 969081312, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'isbn', 1, '9789810743734', 969081312, '9789810743734')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081312, 'e0a1e7285a86bf50154a5a94723bd406')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081117
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:02', NULL, 969081117, 'test_bd', 'queued', '2015-02-05 17:58:02')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1477[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081117 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081312)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081312)[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081117) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081117)[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (25.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081117 AND `dispatched_services`.`id` = 1477 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081117, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003832s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1477[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081117 LIMIT 1[0m
[1m[35mDispatchedService Load (4.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081312 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081312)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081117 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081117 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (62.6ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081312[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (42.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081117[0m
[1m[35m (17.1ms)[0m COMMIT
Completed 200 OK in 688ms (Views: 168.4ms | ActiveRecord: 153.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_With_API_use_disabled,_only_display_link
--------------------------------------------------------------------------
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:58:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ce74b6eb0864dd1a28a5404c53760bb6' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:02', 'some book')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'format', 'book', 969081313, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'genre', 1, 'book', 969081313, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'author', 1, 'smith', 969081313, 'Smith')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'title', 1, 'some book', 969081313, 'Some Book')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:58:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081313, 'ce74b6eb0864dd1a28a5404c53760bb6')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081118[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:02', NULL, 969081118, 'BorrowDirect', 'queued', '2015-02-05 17:58:02')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1478
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081118 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081313)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081313)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081118) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081118)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081118 AND `dispatched_services`.`id` = 1478 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081118, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1478
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081118 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081313 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081313)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081118 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081118 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081313[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081118[0m
[1m[35m (17.6ms)[0m COMMIT
Completed 200 OK in 283ms (Views: 18.7ms | ActiveRecord: 133.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:58:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd497ee623a65515ba9efbe4f0b1c573e' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:02', 'foo')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'format', 'journal', 969081314, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'genre', 1, 'article', 969081314, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'title', 1, 'foo', 969081314, 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:02', 'author', 1, 'bar', 969081314, 'bar')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:58:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081314, 'd497ee623a65515ba9efbe4f0b1c573e')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081119[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:02', NULL, 969081119, 'BorrowDirect', 'queued', '2015-02-05 17:58:02')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:02' WHERE `dispatched_services`.`id` = 1479
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081119 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081314)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081314)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081119) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081119)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081119 AND `dispatched_services`.`id` = 1479 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1479[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081119 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081314 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081314)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081119 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081119 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081314
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081119
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 252ms (Views: 17.4ms | ActiveRecord: 157.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af7aea0aa2bee1f2ca506f0bb2eaad4f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:03', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'format', 'book', 969081315, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'genre', 1, 'book', 969081315, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'title', 1, 'foo', 969081315, 'foo')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:58:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081315, 'af7aea0aa2bee1f2ca506f0bb2eaad4f')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081120 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:03', NULL, 969081120, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:58:03')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1480[0m
[1m[35m (17.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081120" for 127.0.0.1 at 2015-02-05 12:58:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081120"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081120 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081315 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081315)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081120[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081120[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081120 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081120[0m [["request_id", 969081120]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081315 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081315)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081120 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081120 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081315
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081120
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 79ms (Views: 18.3ms | ActiveRecord: 53.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bdcf765ad90f581a8bade881f0d7878f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:03', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'format', 'journal', 969081316, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'isbn', 1, '9789810743734', 969081316, '9789810743734')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081316, 'bdcf765ad90f581a8bade881f0d7878f')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081121
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:03', NULL, 969081121, 'BorrowDirect', 'queued', '2015-02-05 17:58:03')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1481[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081316)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316)[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081121) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081121)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`id` = 1481 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081121, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:03', 'Choose your delivery location', 969081121, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1481
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081316 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081121 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081316
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081121
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 281ms (Views: 24.7ms | ActiveRecord: 129.7ms)
Started GET "/borrow_direct/BorrowDirect/969081121?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:58:03 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081121"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081121 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1481
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:03', 969081121, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081316 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081121&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
Completed 303 See Other in 61ms (ActiveRecord: 46.2ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1481[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011919
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081121&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081121", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081316 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081121
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081121 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 [["request_id", 969081121]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081316 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081316)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081121 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (2.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081121 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081316[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081121[0m
[1m[35m (17.3ms)[0m COMMIT
Completed 200 OK in 82ms (Views: 20.4ms | ActiveRecord: 52.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:58:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09ac64386e68dac057e3164a94f5c202' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:03', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'format', 'journal', 969081317, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:03', 'isbn', 1, '0109836413', 969081317, '0109836413')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:58:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081317, '09ac64386e68dac057e3164a94f5c202')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081122[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:03', NULL, 969081122, 'BorrowDirect', 'queued', '2015-02-05 17:58:03')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:03' WHERE `dispatched_services`.`id` = 1482
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081122 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081317)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081317)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081122) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081122)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081122 AND `dispatched_services`.`id` = 1482 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081122, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:04', 'This item is not currently available from BorrowDirect', 969081122, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1482[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081122 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081317 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081317)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081122 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081122 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081317
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081122
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 279ms (Views: 19.6ms | ActiveRecord: 134.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '218da160a2e8d9d9c8637ffc1f9a3d7d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:04', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'format', 'journal', 969081318, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'isbn', 1, '9789810743734', 969081318, '9789810743734')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081318, '218da160a2e8d9d9c8637ffc1f9a3d7d')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081123
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:04', NULL, 969081123, 'BorrowDirect', 'queued', '2015-02-05 17:58:04')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1483[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081318)
[1m[36mReferentValue Load (3.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318)[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081123) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081123)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (31.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`id` = 1483 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081123, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:04', 'Choose your delivery location', 969081123, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1483
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081318 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081123 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081318
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081123
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 298ms (Views: 23.3ms | ActiveRecord: 133.8ms)
Started GET "/borrow_direct/BorrowDirect/969081123?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:58:04 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081123"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081123 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1483
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:04', 969081123, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081318 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081123&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 53ms (ActiveRecord: 43.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1483[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070011924
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081123&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081123", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081318 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081123
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081123 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 [["request_id", 969081123]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081318 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081318)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081123 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081123 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081318[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081123[0m
[1m[35m (17.4ms)[0m COMMIT
Completed 200 OK in 75ms (Views: 18.0ms | ActiveRecord: 47.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ec4b533fd56c649f211d110c63166ad0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:04', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'format', 'journal', 969081319, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'isbn', 1, '9789810743734', 969081319, '9789810743734')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081319, 'ec4b533fd56c649f211d110c63166ad0')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081124[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:04', NULL, 969081124, 'BorrowDirect', 'queued', '2015-02-05 17:58:04')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1484
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081124 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081319)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081319)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081124) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081124)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081124 AND `dispatched_services`.`id` = 1484 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081124, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:04', 'Choose your delivery location', 969081124, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:04' WHERE `dispatched_services`.`id` = 1484[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081124 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081319 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081319)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081124 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.4ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081124 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081124 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081319[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081124[0m
[1m[35m (21.5ms)[0m COMMIT
Completed 200 OK in 281ms (Views: 23.2ms | ActiveRecord: 135.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1b589a52a4f6c18843007d56aa2c5ad' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:04', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'format', 'journal', 969081320, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:04', 'isbn', 1, '9789810743734', 969081320, '9789810743734')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081320, 'd1b589a52a4f6c18843007d56aa2c5ad')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081125[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:05', NULL, 969081125, 'BorrowDirect', 'queued', '2015-02-05 17:58:05')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:05' WHERE `dispatched_services`.`id` = 1485
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081320)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081125) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081125)
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (23.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`id` = 1485 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081125, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 'Choose your delivery location', 969081125, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (22.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:05' WHERE `dispatched_services`.`id` = 1485[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081320 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081125 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081320[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081125[0m
[1m[35m (17.4ms)[0m COMMIT
Completed 200 OK in 338ms (Views: 23.3ms | ActiveRecord: 133.6ms)
Started GET "/borrow_direct/BorrowDirect/969081125" for 127.0.0.1 at 2015-02-05 12:58:05 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081125"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081125 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081125, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081320 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081125&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 21.9ms)
Started GET "/resolve?umlaut.request_id=969081125&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081125", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081320 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081125
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 [["request_id", 969081125]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081320 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081320)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081125 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081125 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081125 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081320
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081125
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 82ms (Views: 23.2ms | ActiveRecord: 49.7ms)
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '321607f687ae6da65cbc50700f1405c3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:05', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081321, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'isbn', 1, '121212', 969081321, '121212')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081321, '321607f687ae6da65cbc50700f1405c3')
[1m[36m (30.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081126"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081126 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081126 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969081126
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081126, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081126\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081321 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081321)
Redirected to http://test.host/resolve?umlaut.request_id=969081126&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.2ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64a776ac10244fe7c567e20682737c14' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:05', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081322, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'isbn', 1, '121212', 969081322, '121212')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081322, '64a776ac10244fe7c567e20682737c14')
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081127, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081127"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081127 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081127 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070011931
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081127, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070011931\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081322 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081322)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081127&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 25.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29984f161788784a053ed8afe51dab2d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:05', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081323, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'isbn', 1, '121212', 969081323, '121212')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081323, '29984f161788784a053ed8afe51dab2d')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081128, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081128"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081128 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081128 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081128 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:05', NULL, 969081128, 'BorrowDirect', 'in_progress', '2015-02-05 17:58:05')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:05' WHERE `dispatched_services`.`id` = 1486[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081128, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081323 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081323)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081128&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 75ms (ActiveRecord: 64.9ms)
[1m[35mDispatchedService Load (2.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081128
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081128 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081128 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:58:05' WHERE `dispatched_services`.`id` = 1486
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011934[0m
[1m[35m (17.1ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37f3cb90e583a68578df63a993ad3487' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:05', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081324, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'isbn', 1, '121212', 969081324, '121212')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081324, '37f3cb90e583a68578df63a993ad3487')
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081129"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081129 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081129 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:05', 969081129, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081324 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081324)
Redirected to http://test.host/resolve?umlaut.request_id=969081129&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.9ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a2c1340ca3d8a21d2d4cd7db91a603c1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:05', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'format', 'journal', 969081325, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'title', 1, 'title', 969081325, 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:05', 'author', 1, 'au', 969081325, 'au')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081325, 'a2c1340ca3d8a21d2d4cd7db91a603c1')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:06', 969081130, '--- {}\n', 'test_holding', 'holding')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081130, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081130 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081130, 'test_bd', 'successful', '2015-02-05 17:58:06')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1487
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081130
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081130 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f1a872fef3ffcbdbf76e76b74dfdb914' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:06', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081326, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081326, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'aulast', 1, 'grimes', 969081326, 'Grimes')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081326, 'f1a872fef3ffcbdbf76e76b74dfdb914')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081131, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081131 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e03731248fd8c20f5b35fc96b8c5dd3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 17:58:06', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'book', 969081327, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'auinit', 1, 'eh', 969081327, 'EH')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'aulast', 1, 'lenneberg', 969081327, 'Lenneberg')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'title', 1, 'biological foundations of language', 969081327, 'Biological foundations of language')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'genre', 1, 'book', 969081327, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'date', 1, '1967', 969081327, '1967')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081327, 'info:sid/google', '9e03731248fd8c20f5b35fc96b8c5dd3')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081132 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081132, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081132 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081132, 'test_bd', 'successful', '2015-02-05 17:58:06')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1488
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081132
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f1bf6fb11e08aed3677c11437c7d19e' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 17:58:06', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081328, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'auinit', 1, 'rd', 969081328, 'RD')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'aulast', 1, 'kaplan', 969081328, 'Kaplan')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'atitle', 1, 'the coming anarchy', 969081328, 'The coming anarchy')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'title', 1, 'the atlantic monthly', 969081328, 'The Atlantic monthly')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'volume', 1, '273', 969081328, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'issue', 1, '2', 969081328, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'date', 1, '1994', 969081328, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'spage', 1, '44', 969081328, '44')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'issn', 1, '1072-7825', 969081328, '1072-7825')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081328, 'info:sid/google', '7f1bf6fb11e08aed3677c11437c7d19e')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081133 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081133, 'test_bd', 'successful', '2015-02-05 17:58:06')
[1m[36m (73.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1489[0m
[1m[35m (50.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081133[0m
[1m[35mServiceResponse Exists (1.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081133 LIMIT 1
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbd401b6aecb17fae0b530b5c0af22e2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:06', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081329, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'isbn', 1, '9789810743734', 969081329, '9789810743734')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081329, 'dbd401b6aecb17fae0b530b5c0af22e2')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081134 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081134, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b65389028b9906eb9a11197e637cd56f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:06', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081330, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'isbn', 1, '9789810743734', 969081330, '9789810743734')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081330, 'b65389028b9906eb9a11197e637cd56f')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081135 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081135, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:06', 'Choose your delivery location', 969081135, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081135 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081135, 'test_bd', 'successful', '2015-02-05 17:58:06')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1490[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081135[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f46c1d2eb5fddc88076d703a61ce95cc' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:06', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081331, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'isbn', 1, '000000000', 969081331, '000000000')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081331, 'f46c1d2eb5fddc88076d703a61ce95cc')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081136 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081136, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:06', 'This item is not currently available from BorrowDirect', 969081136, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081136 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:06', NULL, 969081136, 'test_bd', 'successful', '2015-02-05 17:58:06')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:06' WHERE `dispatched_services`.`id` = 1491[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081136[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5cf2e2b79c141ccd5906999d770b602' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:06', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'format', 'journal', 969081332, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:06', 'isbn', 1, '9789810743734', 969081332, '9789810743734')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081332, 'c5cf2e2b79c141ccd5906999d770b602')[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081137 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081137, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (20.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081137 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081137, 'test_bd', 'failed_temporary', '2015-02-05 17:58:07')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1492
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081137
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e387ef4f9dc559ee1825d0d0e9003202' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:07', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'format', 'journal', 969081333, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'isbn', 1, '0109836413', 969081333, '0109836413')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:58:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081333, 'e387ef4f9dc559ee1825d0d0e9003202')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081138 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081138, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (2.2ms)[0m BEGIN
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:07', 'This item is not currently available from BorrowDirect', 969081138, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081138 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081138, 'test_bd', 'successful', '2015-02-05 17:58:07')[0m
[1m[35m (28.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1493
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081138
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb659650c93340d3cf13342688cb6a3a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:07', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'format', 'journal', 969081334, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'title', 1, 'title', 969081334, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'author', 1, 'au', 969081334, 'au')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081334, 'bb659650c93340d3cf13342688cb6a3a')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:07', 969081139, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081139 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081139, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081139 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081139, 'test_bd', 'successful', '2015-02-05 17:58:07')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1494[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081139[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'afca11dc6ab906e0f0d7bef678f506be' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:07', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'format', 'journal', 969081335, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'title', 1, 'title', 969081335, 'title')
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'author', 1, 'au', 969081335, 'au')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081335, 'afca11dc6ab906e0f0d7bef678f506be')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:07', 969081140, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081140 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081140 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081140, 'test_bd', 'successful', '2015-02-05 17:58:07')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1495[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081140[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd50f54282e3a6d41d8d3142081567cb0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:07', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'format', 'journal', 969081336, 'journal')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'title', 1, 'title', 969081336, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:07', 'author', 1, 'au', 969081336, 'au')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081336, 'd50f54282e3a6d41d8d3142081567cb0')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:07', 969081141, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081141 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081141, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081141 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:07', NULL, 969081141, 'test_bd', 'successful', '2015-02-05 17:58:07')[0m
[1m[35m (22.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:07' WHERE `dispatched_services`.`id` = 1496
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081141
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6139371a26f853b8a000c8551fa0616' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:53', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'format', 'journal', 969081337, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'isbn', 1, '9789810743734', 969081337, '9789810743734')
[1m[36m (26.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081337, 'b6139371a26f853b8a000c8551fa0616')[0m
[1m[35m (21.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081142
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:53', NULL, 969081142, 'test_bd', 'queued', '2015-02-05 17:58:53')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:53' WHERE `dispatched_services`.`id` = 1497[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081142 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081337)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081337)[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081142) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081142)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081142 AND `dispatched_services`.`id` = 1497 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081142, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.8ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.004173s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:58:53' WHERE `dispatched_services`.`id` = 1497[0m
[1m[35m (23.9ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081142 LIMIT 1[0m
[1m[35mDispatchedService Load (7.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081337 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081337)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081142 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081142 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (64.5ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081337[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081142[0m
[1m[35m (18.0ms)[0m COMMIT
Completed 200 OK in 722ms (Views: 171.2ms | ActiveRecord: 178.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_With_API_use_disabled,_only_display_link
--------------------------------------------------------------------------
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:58:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f9549f609f93c6bdf6617b0b8db5c1b' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:53', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'format', 'book', 969081338, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'genre', 1, 'book', 969081338, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'author', 1, 'smith', 969081338, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:53', 'title', 1, 'some book', 969081338, 'Some Book')[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:58:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081338, '0f9549f609f93c6bdf6617b0b8db5c1b')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081143[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:53', NULL, 969081143, 'BorrowDirect', 'queued', '2015-02-05 17:58:53')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:53' WHERE `dispatched_services`.`id` = 1498
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081143 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081338)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081338)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081143) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081143)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081143 AND `dispatched_services`.`id` = 1498 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081143, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1498
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081143 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081338 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081338)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081143 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081143 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (38.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.4ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081338[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081143[0m
[1m[35m (17.5ms)[0m COMMIT
Completed 200 OK in 293ms (Views: 56.0ms | ActiveRecord: 133.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:58:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '524596403dce2a5192fa78f78d1fd264' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:54', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'format', 'journal', 969081339, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'genre', 1, 'article', 969081339, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'title', 1, 'foo', 969081339, 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'author', 1, 'bar', 969081339, 'bar')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:58:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081339, '524596403dce2a5192fa78f78d1fd264')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081144[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:54', NULL, 969081144, 'BorrowDirect', 'queued', '2015-02-05 17:58:54')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1499
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081144 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081339)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081339)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081144) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081144)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081144 AND `dispatched_services`.`id` = 1499 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1499[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081144 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081339 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081339)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081144 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081144 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081339
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.8ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081144
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 236ms (Views: 19.0ms | ActiveRecord: 141.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e91fc0164f0cf142265ecc14c1b6d70' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:54', 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'format', 'book', 969081340, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'genre', 1, 'book', 969081340, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'title', 1, 'foo', 969081340, 'foo')[0m
[1m[35m (21.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:58:54', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081340, '2e91fc0164f0cf142265ecc14c1b6d70')
[1m[36m (32.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081145 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:54', NULL, 969081145, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:58:54')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1500[0m
[1m[35m (31.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081145" for 127.0.0.1 at 2015-02-05 12:58:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081145"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081145 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081340 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081340)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081145[0m
[1m[35m (22.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081145[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081145 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081145[0m [["request_id", 969081145]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081340 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081340)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081145 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081145 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081340
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081145
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 85ms (Views: 18.3ms | ActiveRecord: 59.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed21fdc7ea82d77568ba5030a637dc2a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:54', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'format', 'journal', 969081341, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:54', 'isbn', 1, '9789810743734', 969081341, '9789810743734')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081341, 'ed21fdc7ea82d77568ba5030a637dc2a')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081146
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:54', NULL, 969081146, 'BorrowDirect', 'queued', '2015-02-05 17:58:54')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1501[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081341)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341)[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081146) ORDER BY id ASC
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081146)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`id` = 1501 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081146, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:54', 'Choose your delivery location', 969081146, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (21.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:54' WHERE `dispatched_services`.`id` = 1501
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081341 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081146 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081341
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081146
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 296ms (Views: 25.4ms | ActiveRecord: 134.7ms)
Started GET "/borrow_direct/BorrowDirect/969081146?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:58:55 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081146"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081146 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1501
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:55', 969081146, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081341 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081146&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 57ms (ActiveRecord: 47.1ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[36mDispatchedService Load (2.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (2.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1501[0m
[1m[35m (33.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011957
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081146&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081146", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:55-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081341 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081146
[1m[36m (41.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081146 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 [["request_id", 969081146]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081341 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081341)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081146 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081146 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081341[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081146[0m
[1m[35m (22.4ms)[0m COMMIT
Completed 200 OK in 109ms (Views: 21.7ms | ActiveRecord: 78.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:58:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3af32a4add3d8572684b38920d583c2a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:55', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:55', 'format', 'journal', 969081342, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:55', 'isbn', 1, '0109836413', 969081342, '0109836413')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:58:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081342, '3af32a4add3d8572684b38920d583c2a')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081147[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:55', NULL, 969081147, 'BorrowDirect', 'queued', '2015-02-05 17:58:55')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1502
[1m[36m (67.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081147 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081342)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081342)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081147) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081147)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (25.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081147 AND `dispatched_services`.`id` = 1502 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081147, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:55', 'This item is not currently available from BorrowDirect', 969081147, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1502[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081147 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081342 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081342)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081147 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081147 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081342
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081147
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 337ms (Views: 20.2ms | ActiveRecord: 183.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d1ed97d6405f8000940f6397b7c7153' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:55', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:55', 'format', 'journal', 969081343, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:55', 'isbn', 1, '9789810743734', 969081343, '9789810743734')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081343, '8d1ed97d6405f8000940f6397b7c7153')[0m
[1m[35m (22.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081148
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:55', NULL, 969081148, 'BorrowDirect', 'queued', '2015-02-05 17:58:55')
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1503[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081343)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343)[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081148) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081148)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`id` = 1503 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081148, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:55', 'Choose your delivery location', 969081148, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1503
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081343 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081148 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081343
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081148
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 337ms (Views: 64.1ms | ActiveRecord: 146.3ms)
Started GET "/borrow_direct/BorrowDirect/969081148?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:58:55 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081148"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081148 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:58:55' WHERE `dispatched_services`.`id` = 1503
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:55', 969081148, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (24.1ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081343 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081148&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 62ms (ActiveRecord: 52.5ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1503[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070011962
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081148&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081148", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:56-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081343 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081148
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081148 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 [["request_id", 969081148]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081343 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081343)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081148 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081148 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081343[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081148[0m
[1m[35m (31.6ms)[0m COMMIT
Completed 200 OK in 95ms (Views: 20.9ms | ActiveRecord: 63.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b66456aba05bc6835ced75b801dc11d1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:56', '9789810743734')[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'format', 'journal', 969081344, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'isbn', 1, '9789810743734', 969081344, '9789810743734')[0m
[1m[35m (25.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081344, 'b66456aba05bc6835ced75b801dc11d1')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081149[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:56', NULL, 969081149, 'BorrowDirect', 'queued', '2015-02-05 17:58:56')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1504
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081149 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081344)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081344)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081149) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081149)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081149 AND `dispatched_services`.`id` = 1504 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:56', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081149, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:56', 'Choose your delivery location', 969081149, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1504[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081149 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081344 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081344)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081149 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081149 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081149 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081344[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081149[0m
[1m[35m (18.2ms)[0m COMMIT
Completed 200 OK in 295ms (Views: 22.8ms | ActiveRecord: 142.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:58:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16219dc78ec54feccf6eaa4f3741fe12' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:56', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'format', 'journal', 969081345, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'isbn', 1, '9789810743734', 969081345, '9789810743734')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081345, '16219dc78ec54feccf6eaa4f3741fe12')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081150[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:56', NULL, 969081150, 'BorrowDirect', 'queued', '2015-02-05 17:58:56')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1505
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081345)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081150) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081150)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`id` = 1505 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:56', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081150, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (21.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:56', 'Choose your delivery location', 969081150, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:58:56' WHERE `dispatched_services`.`id` = 1505[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081345 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081150 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (44.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081345[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081150[0m
[1m[35m (16.6ms)[0m COMMIT
Completed 200 OK in 330ms (Views: 67.9ms | ActiveRecord: 132.1ms)
Started GET "/borrow_direct/BorrowDirect/969081150" for 127.0.0.1 at 2015-02-05 12:58:56 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081150"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081150 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:56', 969081150, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081345 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081150&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 35ms (ActiveRecord: 24.8ms)
Started GET "/resolve?umlaut.request_id=969081150&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:58:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081150", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:58:56-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081345 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081150
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 [["request_id", 969081150]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081345 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081345)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (8.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081150 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081150 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081150 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081345
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081150
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 90ms (Views: 26.7ms | ActiveRecord: 53.0ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9bbee511ff4ac1d418d9eab4ddc40a90' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:56', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'format', 'journal', 969081346, 'journal')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081346, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:56', 'aulast', 1, 'grimes', 969081346, 'Grimes')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081346, '9bbee511ff4ac1d418d9eab4ddc40a90')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081151, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081151 ORDER BY id ASC[0m
[1m[35mRequest Load (2.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1287d94832141ce2e99b1167807d4af' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 17:58:57', 'biological foundations of language', '1967')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'book', 969081347, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'auinit', 1, 'eh', 969081347, 'EH')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'aulast', 1, 'lenneberg', 969081347, 'Lenneberg')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'title', 1, 'biological foundations of language', 969081347, 'Biological foundations of language')
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'genre', 1, 'book', 969081347, 'book')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'date', 1, '1967', 969081347, '1967')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081347, 'info:sid/google', 'd1287d94832141ce2e99b1167807d4af')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081152 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081152, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081152 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:57', NULL, 969081152, 'test_bd', 'successful', '2015-02-05 17:58:57')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:57' WHERE `dispatched_services`.`id` = 1506
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081152
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41047ea604341afec8f2760b1769fe17' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 17:58:57', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081348, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'auinit', 1, 'rd', 969081348, 'RD')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'aulast', 1, 'kaplan', 969081348, 'Kaplan')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'atitle', 1, 'the coming anarchy', 969081348, 'The coming anarchy')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'title', 1, 'the atlantic monthly', 969081348, 'The Atlantic monthly')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'volume', 1, '273', 969081348, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'issue', 1, '2', 969081348, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'date', 1, '1994', 969081348, '1994')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'spage', 1, '44', 969081348, '44')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'issn', 1, '1072-7825', 969081348, '1072-7825')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081348, 'info:sid/google', '41047ea604341afec8f2760b1769fe17')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081153 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:57', NULL, 969081153, 'test_bd', 'successful', '2015-02-05 17:58:57')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:57' WHERE `dispatched_services`.`id` = 1507[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081153[0m
[1m[35mServiceResponse Exists (1.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081153 LIMIT 1
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04b648bf0526017b8e0da32ff25fa32f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:57', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081349, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'isbn', 1, '121212', 969081349, '121212')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081349, '04b648bf0526017b8e0da32ff25fa32f')[0m
[1m[35m (17.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081154"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081154 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081154 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969081154
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081154, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081154\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081349 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081349)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081154&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.0ms)
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea6e48c2985baedf65e77229b007d77f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:57', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081350, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'isbn', 1, '121212', 969081350, '121212')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081350, 'ea6e48c2985baedf65e77229b007d77f')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081155, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081155"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081155 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081155 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070011971
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081155, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070011971\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081350 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081350)
Redirected to http://test.host/resolve?umlaut.request_id=969081155&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 73ms (ActiveRecord: 26.8ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cf0b406f1666c5a927934d2380f2acb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:57', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081351, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'isbn', 1, '121212', 969081351, '121212')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081351, '8cf0b406f1666c5a927934d2380f2acb')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081156, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081156"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081156 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081156 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081156 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:57', NULL, 969081156, 'BorrowDirect', 'in_progress', '2015-02-05 17:58:57')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:57' WHERE `dispatched_services`.`id` = 1508
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081156, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081351 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081351)
Redirected to http://test.host/resolve?umlaut.request_id=969081156&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 79ms (ActiveRecord: 63.3ms)
[1m[36mDispatchedService Load (5.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081156[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081156 ORDER BY id ASC
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081156 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:58:57' WHERE `dispatched_services`.`id` = 1508[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070011974
[1m[36m (71.1ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '365d2849f87dcf6775632288552cd3cb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (47.9ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:57', '121212')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'format', 'journal', 969081352, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:57', 'isbn', 1, '121212', 969081352, '121212')
[1m[36m (25.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:58:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081352, '365d2849f87dcf6775632288552cd3cb')[0m
[1m[35m (49.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081157"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081157 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081157 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:57', 969081157, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (32.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081352 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081352)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081157&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A58%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 48ms (ActiveRecord: 40.1ms)
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6240ad53b1053a8390a21c0689792243' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:58', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081353, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'isbn', 1, '9789810743734', 969081353, '9789810743734')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081353, '6240ad53b1053a8390a21c0689792243')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081158 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081158, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 'Choose your delivery location', 969081158, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081158 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081158, 'test_bd', 'successful', '2015-02-05 17:58:58')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1509[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081158[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ca4c0e4a8f2b89159c9f0e3ef68c24d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:58', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081354, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'isbn', 1, '9789810743734', 969081354, '9789810743734')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081354, '9ca4c0e4a8f2b89159c9f0e3ef68c24d')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081159 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081159, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081159 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081159, 'test_bd', 'failed_temporary', '2015-02-05 17:58:58')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1510
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081159
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2eeab312cf5050a6b558a4c9b43702d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:58', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081355, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'isbn', 1, '0109836413', 969081355, '0109836413')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081355, 'e2eeab312cf5050a6b558a4c9b43702d')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081160 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081160, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 'This item is not currently available from BorrowDirect', 969081160, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081160 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081160, 'test_bd', 'successful', '2015-02-05 17:58:58')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1511
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081160
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2fb79aeb5907ec77b0dd35f92f9dc6f7' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:58:58', '000000000')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081356, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'isbn', 1, '000000000', 969081356, '000000000')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081356, '2fb79aeb5907ec77b0dd35f92f9dc6f7')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081161 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081161, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 'This item is not currently available from BorrowDirect', 969081161, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081161 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081161, 'test_bd', 'successful', '2015-02-05 17:58:58')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1512
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081161
[1m[36m (0.8ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21eeacbe39581a5db344384be153aa6e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:58', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081357, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'title', 1, 'title', 969081357, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'author', 1, 'au', 969081357, 'au')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081357, '21eeacbe39581a5db344384be153aa6e')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 969081162, '--- {}\n', 'test_holding', 'holding')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081162, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081162 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081162, 'test_bd', 'successful', '2015-02-05 17:58:58')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1513
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081162
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081162 ORDER BY id ASC[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a92a4aeb31166c6dbdfe1c02eaa73865' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:58', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081358, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'title', 1, 'title', 969081358, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'author', 1, 'au', 969081358, 'au')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081358, 'a92a4aeb31166c6dbdfe1c02eaa73865')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 969081163, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081163 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081163, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081163 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:58', NULL, 969081163, 'test_bd', 'successful', '2015-02-05 17:58:58')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:58' WHERE `dispatched_services`.`id` = 1514
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081163
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8dd4d641fb7afe02fb086af5c9563db3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:58', 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'format', 'journal', 969081359, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'title', 1, 'title', 969081359, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:58', 'author', 1, 'au', 969081359, 'au')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081359, '8dd4d641fb7afe02fb086af5c9563db3')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:58', 969081164, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081164 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:58:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081164, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081164 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:59', NULL, 969081164, 'test_bd', 'successful', '2015-02-05 17:58:59')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:59' WHERE `dispatched_services`.`id` = 1515[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081164[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14d9825d92d2c6a94d74734c5c763554' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:58:59', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:59', 'format', 'journal', 969081360, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:59', 'title', 1, 'title', 969081360, 'title')
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:58:59', 'author', 1, 'au', 969081360, 'au')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:58:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081360, '14d9825d92d2c6a94d74734c5c763554')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:58:59', 969081165, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081165 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081165 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:58:59', NULL, 969081165, 'test_bd', 'successful', '2015-02-05 17:58:59')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:58:59' WHERE `dispatched_services`.`id` = 1516[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081165[0m
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf2b0789ee680ee6446248ef4178ec7a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081361, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'title', 969081361, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'author', 1, 'au', 969081361, 'au')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081361, 'cf2b0789ee680ee6446248ef4178ec7a')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:37', 969081166, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081166, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081166 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081166, 'test_bd', 'successful', '2015-02-05 17:59:37')
[1m[36m (21.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1517[0m
[1m[35m (38.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081166[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081166 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (1.0ms)[0m ROLLBACK
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '165c7002bfd1ff8d2ee6b4de3ab07cd3' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081362, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081362, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'aulast', 1, 'grimes', 969081362, 'Grimes')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081362, '165c7002bfd1ff8d2ee6b4de3ab07cd3')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081167, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081167 ORDER BY id ASC
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85cabd29882ff34b9073d9cb83cc01eb' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 17:59:37', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081363, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'auinit', 1, 'rd', 969081363, 'RD')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'aulast', 1, 'kaplan', 969081363, 'Kaplan')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'atitle', 1, 'the coming anarchy', 969081363, 'The coming anarchy')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'the atlantic monthly', 969081363, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'volume', 1, '273', 969081363, '273')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'issue', 1, '2', 969081363, '2')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'date', 1, '1994', 969081363, '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'spage', 1, '44', 969081363, '44')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'issn', 1, '1072-7825', 969081363, '1072-7825')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081363, 'info:sid/google', '85cabd29882ff34b9073d9cb83cc01eb')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081168 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081168, 'test_bd', 'successful', '2015-02-05 17:59:37')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1518[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081168[0m
[1m[35mServiceResponse Exists (1.3ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081168 LIMIT 1
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1bbe9c0080368ae2853c062f6c04cae9' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 17:59:37', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'book', 969081364, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'auinit', 1, 'eh', 969081364, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'aulast', 1, 'lenneberg', 969081364, 'Lenneberg')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'biological foundations of language', 969081364, 'Biological foundations of language')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'genre', 1, 'book', 969081364, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'date', 1, '1967', 969081364, '1967')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081364, 'info:sid/google', '1bbe9c0080368ae2853c062f6c04cae9')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081169 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081169, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081169 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081169, 'test_bd', 'successful', '2015-02-05 17:59:37')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1519[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081169[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96b5266898a0cac5cefa008f3127a48b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081365, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'title', 969081365, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'author', 1, 'au', 969081365, 'au')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081365, '96b5266898a0cac5cefa008f3127a48b')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:37', 969081170, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081170 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081170, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081170 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081170, 'test_bd', 'successful', '2015-02-05 17:59:37')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1520
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081170
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15a2c7393c618437198dbfee2638cd37' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081366, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'title', 969081366, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'author', 1, 'au', 969081366, 'au')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:59:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081366, '15a2c7393c618437198dbfee2638cd37')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:37', 969081171, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081171 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081171, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081171 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:37', NULL, 969081171, 'test_bd', 'successful', '2015-02-05 17:59:37')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:37' WHERE `dispatched_services`.`id` = 1521[0m
[1m[35m (22.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081171[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41398d864b920f13f1e71033c10938b4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:37', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'format', 'journal', 969081367, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'title', 1, 'title', 969081367, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:37', 'author', 1, 'au', 969081367, 'au')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081367, '41398d864b920f13f1e71033c10938b4')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081172, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081172 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (4.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081172 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:38', NULL, 969081172, 'test_bd', 'successful', '2015-02-05 17:59:38')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:38' WHERE `dispatched_services`.`id` = 1522[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (3.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081172[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 12ms (Views: 11.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.8ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '822c655724c1cd8db1bd714bc31b30b6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081368, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '121212', 969081368, '121212')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081368, '822c655724c1cd8db1bd714bc31b30b6')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081173"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081173 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081173 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969081173
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081173, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081173\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081368 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081368)
Redirected to http://test.host/resolve?umlaut.request_id=969081173&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 73ms (ActiveRecord: 24.7ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a30dbfb6cc582f7af8bbbe29fb4b226b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081369, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '121212', 969081369, '121212')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081369, 'a30dbfb6cc582f7af8bbbe29fb4b226b')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081174, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081174"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081174 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081174 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012000
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081174, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012000\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081369 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081369)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081174&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '350c26b0217f2e9480dc1fb573b50aad' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081370, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '121212', 969081370, '121212')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081370, '350c26b0217f2e9480dc1fb573b50aad')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081175, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081175"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081175 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081175 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081175 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:38', NULL, 969081175, 'BorrowDirect', 'in_progress', '2015-02-05 17:59:38')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:38' WHERE `dispatched_services`.`id` = 1523[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081175, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081370 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081370)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081175&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 75ms (ActiveRecord: 64.6ms)
[1m[35mDispatchedService Load (3.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081175
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081175 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081175 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:59:38' WHERE `dispatched_services`.`id` = 1523
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012003[0m
[1m[35m (17.3ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a7fda42b3957b23824567737ac7f7af' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081371, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '121212', 969081371, '121212')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 17:59:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081371, '0a7fda42b3957b23824567737ac7f7af')
[1m[36m (71.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081176"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081176 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081176 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:38', 969081176, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (46.5ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081371 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081371)
Redirected to http://test.host/resolve?umlaut.request_id=969081176&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 70ms (ActiveRecord: 62.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b4c5cf5297d4ea03df09228eee4ce58' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (5.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:38', '9789810743734')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'format', 'journal', 969081372, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:38', 'isbn', 1, '9789810743734', 969081372, '9789810743734')[0m
[1m[35m (35.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081372, '4b4c5cf5297d4ea03df09228eee4ce58')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081177[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:38', NULL, 969081177, 'test_bd', 'queued', '2015-02-05 17:59:38')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:38' WHERE `dispatched_services`.`id` = 1524
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081177 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081372)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081372)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081177) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081177)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081177 AND `dispatched_services`.`id` = 1524 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081177, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003874s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1524
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081177 LIMIT 1
[1m[36mDispatchedService Load (7.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081372 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081372)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081177 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081177 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081372
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081177
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 459ms (Views: 129.3ms | ActiveRecord: 154.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 12:59:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41deb603ae7f0f41af8ae4fdac94c656' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:39', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'format', 'book', 969081373, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'genre', 1, 'book', 969081373, 'book')
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'author', 1, 'smith', 969081373, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'title', 1, 'some book', 969081373, 'Some Book')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 17:59:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081373, '41deb603ae7f0f41af8ae4fdac94c656')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081178
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:39', NULL, 969081178, 'BorrowDirect', 'queued', '2015-02-05 17:59:39')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1525[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081178 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081373)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081373)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081178) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081178)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081178 AND `dispatched_services`.`id` = 1525 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081178, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1525[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081178 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081373 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081373)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081178 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081178 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081373
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081178
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 258ms (Views: 19.4ms | ActiveRecord: 136.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 12:59:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18462eb38bc95e07ebad95e8b1842e4b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:39', 'foo')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'format', 'journal', 969081374, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'genre', 1, 'article', 969081374, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'title', 1, 'foo', 969081374, 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'author', 1, 'bar', 969081374, 'bar')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 17:59:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081374, '18462eb38bc95e07ebad95e8b1842e4b')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081179
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:39', NULL, 969081179, 'BorrowDirect', 'queued', '2015-02-05 17:59:39')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1526[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081179 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081374)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081374)[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081179) ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081179)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081179 AND `dispatched_services`.`id` = 1526 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1526
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081179 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081374 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081374)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081179 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081179 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081374[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081179[0m
[1m[35m (17.7ms)[0m COMMIT
Completed 200 OK in 225ms (Views: 16.7ms | ActiveRecord: 130.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15d2a70ffa156ad00c51c90f8822c37a' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 17:59:39', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'format', 'book', 969081375, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'genre', 1, 'book', 969081375, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:39', 'title', 1, 'foo', 969081375, 'foo')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 17:59:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081375, '15d2a70ffa156ad00c51c90f8822c37a')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081180 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:39', NULL, 969081180, 'BorrowDirect', 'failed_fatal', '2015-02-05 17:59:39')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:39' WHERE `dispatched_services`.`id` = 1527
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081180" for 127.0.0.1 at 2015-02-05 12:59:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081180"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081180 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081375 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081375)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081180
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081180
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081180 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081180 [["request_id", 969081180]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081375 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081375)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081180 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081180 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081375[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081180[0m
[1m[35m (17.5ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 19.2ms | ActiveRecord: 51.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:40 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e704c79b9bb322c6de61424cc348bb1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:40', '9789810743734')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'format', 'journal', 969081376, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'isbn', 1, '9789810743734', 969081376, '9789810743734')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:40', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081376, '1e704c79b9bb322c6de61424cc348bb1')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081181[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:40', NULL, 969081181, 'BorrowDirect', 'queued', '2015-02-05 17:59:40')[0m
[1m[35m (22.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1528
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081376)[0m
[1m[35mReferentValue Load (2.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081181) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081181)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`id` = 1528 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081181, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:40', 'Choose your delivery location', 969081181, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1528[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081376 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081181 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (48.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (49.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081376[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081181[0m
[1m[35m (19.0ms)[0m COMMIT
Completed 200 OK in 338ms (Views: 66.5ms | ActiveRecord: 142.9ms)
Started GET "/borrow_direct/BorrowDirect/969081181?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:59:40 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081181"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081181 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1528[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:40', 969081181, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081376 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081181&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 55ms (ActiveRecord: 45.9ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1528
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012009[0m
[1m[35m (17.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081181&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:59:40 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081181", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:59:40-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081376 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081181[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081181 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181[0m [["request_id", 969081181]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081376 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081376)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081181 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081181 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081376
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081181
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 80ms (Views: 20.3ms | ActiveRecord: 50.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 12:59:40 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6de57e8f7d9f22560108466598cffc80' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:40', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'format', 'journal', 969081377, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'isbn', 1, '0109836413', 969081377, '0109836413')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:59:40', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081377, '6de57e8f7d9f22560108466598cffc80')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081182
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:40', NULL, 969081182, 'BorrowDirect', 'queued', '2015-02-05 17:59:40')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1529[0m
[1m[35m (21.9ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081182 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081377)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081377)[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081182) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081182)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081182 AND `dispatched_services`.`id` = 1529 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081182, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:40', 'This item is not currently available from BorrowDirect', 969081182, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1529
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081182 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081377 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081377)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081182 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081182 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081377[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081182[0m
[1m[35m (19.3ms)[0m COMMIT
Completed 200 OK in 281ms (Views: 19.5ms | ActiveRecord: 136.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:40 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4791b9e62aa64238710605bb299b0085' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:40', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'format', 'journal', 969081378, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:40', 'isbn', 1, '9789810743734', 969081378, '9789810743734')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:40', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081378, '4791b9e62aa64238710605bb299b0085')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081183[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:40', NULL, 969081183, 'BorrowDirect', 'queued', '2015-02-05 17:59:40')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:40' WHERE `dispatched_services`.`id` = 1530
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081378)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081183) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081183)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (22.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`id` = 1530 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081183, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:41', 'Choose your delivery location', 969081183, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (21.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1530[0m
[1m[35m (23.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081378 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081183 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (44.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (47.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081378[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081183[0m
[1m[35m (17.9ms)[0m COMMIT
Completed 200 OK in 340ms (Views: 64.2ms | ActiveRecord: 133.8ms)
Started GET "/borrow_direct/BorrowDirect/969081183?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 12:59:41 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081183"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081183 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1530[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:41', 969081183, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081378 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081183&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 60ms (ActiveRecord: 45.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1530
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012014[0m
[1m[35m (18.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081183&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:59:41 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081183", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:59:41-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081378 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081183[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081183 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183[0m [["request_id", 969081183]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081378 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081378)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081183 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081183 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081378
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081183
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 75ms (Views: 17.5ms | ActiveRecord: 48.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:41 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '606347130f28ea924cb3544aea1895dc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:41', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:41', 'format', 'journal', 969081379, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:41', 'isbn', 1, '9789810743734', 969081379, '9789810743734')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081379, '606347130f28ea924cb3544aea1895dc')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081184
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:41', NULL, 969081184, 'BorrowDirect', 'queued', '2015-02-05 17:59:41')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1531[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081184 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081379)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081379)[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081184) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081184)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081184 AND `dispatched_services`.`id` = 1531 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081184, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:41', 'Choose your delivery location', 969081184, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1531
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081184 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081379 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081379)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081184 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081184 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081184 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081379
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081184
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 277ms (Views: 22.4ms | ActiveRecord: 128.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 12:59:41 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5cf9f64e2d8466a2767ddee4117a702' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:41', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:41', 'format', 'journal', 969081380, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:41', 'isbn', 1, '9789810743734', 969081380, '9789810743734')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081380, 'd5cf9f64e2d8466a2767ddee4117a702')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081185
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:41', NULL, 969081185, 'BorrowDirect', 'queued', '2015-02-05 17:59:41')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1532[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081380)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380)[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081185) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081185)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`id` = 1532 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081185, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:41', 'Choose your delivery location', 969081185, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 17:59:41' WHERE `dispatched_services`.`id` = 1532
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081380 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081185 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (41.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (43.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081380
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081185
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 321ms (Views: 66.9ms | ActiveRecord: 130.1ms)
Started GET "/borrow_direct/BorrowDirect/969081185" for 127.0.0.1 at 2015-02-05 12:59:42 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081185"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081185 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:42', 969081185, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081380 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081185&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.8ms)
Started GET "/resolve?umlaut.request_id=969081185&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T12%3A59%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 12:59:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081185", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T12:59:42-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081380 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081185[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185[0m [["request_id", 969081185]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081380 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081380)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081185 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081185 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081185 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081380[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081185[0m
[1m[35m (20.0ms)[0m COMMIT
Completed 200 OK in 83ms (Views: 22.2ms | ActiveRecord: 52.3ms)
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e898613543b84de68c3ec09a26c355d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:42', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'format', 'journal', 969081381, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'isbn', 1, '9789810743734', 969081381, '9789810743734')[0m
[1m[35m (22.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081381, '9e898613543b84de68c3ec09a26c355d')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081186 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081186, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:42', 'Choose your delivery location', 969081186, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081186 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:42', NULL, 969081186, 'test_bd', 'successful', '2015-02-05 17:59:42')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:42' WHERE `dispatched_services`.`id` = 1533
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081186
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3087b12aafb0e1c2ce548f85b2141ce2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:42', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'format', 'journal', 969081382, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'isbn', 1, '9789810743734', 969081382, '9789810743734')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 17:59:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081382, '3087b12aafb0e1c2ce548f85b2141ce2')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081187 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081187, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081187 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:42', NULL, 969081187, 'test_bd', 'failed_temporary', '2015-02-05 17:59:42')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:67:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 17:59:42' WHERE `dispatched_services`.`id` = 1534[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081187[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59b3876af04aca8596d954e7fc4fa268' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:42', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'format', 'journal', 969081383, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'isbn', 1, '0109836413', 969081383, '0109836413')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 17:59:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081383, '59b3876af04aca8596d954e7fc4fa268')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081188 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081188, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:42', 'This item is not currently available from BorrowDirect', 969081188, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081188 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:42', NULL, 969081188, 'test_bd', 'successful', '2015-02-05 17:59:42')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:42' WHERE `dispatched_services`.`id` = 1535[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081188[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3433bdaded790df784cf30171252deb' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 17:59:42', '000000000')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'format', 'journal', 969081384, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 17:59:42', 'isbn', 1, '000000000', 969081384, '000000000')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 17:59:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081384, 'b3433bdaded790df784cf30171252deb')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081189 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 17:59:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081189, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 17:59:42', 'This item is not currently available from BorrowDirect', 969081189, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081189 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 17:59:42', NULL, 969081189, 'test_bd', 'successful', '2015-02-05 17:59:42')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 17:59:42' WHERE `dispatched_services`.`id` = 1536[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081189[0m
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2144dedf0ed33cd5007b0a3f347f22f4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:26', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'format', 'journal', 969081385, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'title', 1, 'title', 969081385, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'author', 1, 'au', 969081385, 'au')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081385, '2144dedf0ed33cd5007b0a3f347f22f4')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:26', 969081190, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081190, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081190 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:26', NULL, 969081190, 'test_bd', 'successful', '2015-02-05 18:01:26')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:26' WHERE `dispatched_services`.`id` = 1537[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081190[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081190 ORDER BY id ASC
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd18db613a825d680f8fb4c8163652f33' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:26', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'format', 'journal', 969081386, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'title', 1, 'title', 969081386, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'author', 1, 'au', 969081386, 'au')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081386, 'd18db613a825d680f8fb4c8163652f33')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:26', 969081191, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081191 ORDER BY id ASC
[1m[36mDispatchedService Load (4.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081191 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:26', NULL, 969081191, 'test_bd', 'successful', '2015-02-05 18:01:26')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:26' WHERE `dispatched_services`.`id` = 1538
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081191
[1m[36mRequest Load (5.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'edcf7cf1940377276c877e50cb157ada' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:26', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'format', 'journal', 969081387, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'title', 1, 'title', 969081387, 'title')[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:26', 'author', 1, 'au', 969081387, 'au')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081387, 'edcf7cf1940377276c877e50cb157ada')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081192, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081192 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081192, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081192 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:27', NULL, 969081192, 'test_bd', 'successful', '2015-02-05 18:01:27')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:27' WHERE `dispatched_services`.`id` = 1539[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081192[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba99e7332ed47f9228e75cc449f12fc2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:27', 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081388, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'title', 1, 'title', 969081388, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'author', 1, 'au', 969081388, 'au')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081388, 'ba99e7332ed47f9228e75cc449f12fc2')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081193, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mServiceResponse Load (5.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081193 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081193, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mDispatchedService Load (4.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081193 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:27', NULL, 969081193, 'test_bd', 'successful', '2015-02-05 18:01:27')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:27' WHERE `dispatched_services`.`id` = 1540
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081193
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 53ms (Views: 11.2ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.6ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f424337cb98d581082c7d81f6c883f4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081389, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '121212', 969081389, '121212')
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081389, '4f424337cb98d581082c7d81f6c883f4')[0m
[1m[35m (18.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081194"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081194 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081194 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969081194
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081194, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081194\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081389 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081389)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081194&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 44ms (ActiveRecord: 30.1ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'edfa349d4414c7bea7e397148f9ccb3c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081390, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '121212', 969081390, '121212')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081390, 'edfa349d4414c7bea7e397148f9ccb3c')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081195, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081195"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081195 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081195 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012035
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081195, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012035\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081390 LIMIT 1[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081390)
Redirected to http://test.host/resolve?umlaut.request_id=969081195&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 27.0ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '379508fafd6cce4689bc0705fd30f89a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081391, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '121212', 969081391, '121212')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081391, '379508fafd6cce4689bc0705fd30f89a')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081196, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (20.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081196"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081196 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081196 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081196 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:27', NULL, 969081196, 'BorrowDirect', 'in_progress', '2015-02-05 18:01:27')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:27' WHERE `dispatched_services`.`id` = 1541
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081196, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081391 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081391)
Redirected to http://test.host/resolve?umlaut.request_id=969081196&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 84ms (ActiveRecord: 70.3ms)
[1m[36mDispatchedService Load (38.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081196[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081196 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081196 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:01:27' WHERE `dispatched_services`.`id` = 1541[0m
[1m[35m (27.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012038
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc18254ac139ddd44b81a103d1133810' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081392, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '121212', 969081392, '121212')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081392, 'dc18254ac139ddd44b81a103d1133810')[0m
[1m[35m (18.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081197"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081197 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081197 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:27', 969081197, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081392 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081392)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081197&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 43ms (ActiveRecord: 35.1ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0fdb6b6e0f72187db10164dd4a686d4d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:27', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'format', 'journal', 969081393, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:27', 'isbn', 1, '9789810743734', 969081393, '9789810743734')
[1m[36m (21.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081393, '0fdb6b6e0f72187db10164dd4a686d4d')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081198 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081198, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:28', 'Choose your delivery location', 969081198, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081198 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081198, 'test_bd', 'successful', '2015-02-05 18:01:28')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1542[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081198[0m
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1ef6534103d020ea2b78ed88d5b29df' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:28', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081394, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'isbn', 1, '0109836413', 969081394, '0109836413')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081394, 'e1ef6534103d020ea2b78ed88d5b29df')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081199 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081199, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:28', 'This item is not currently available from BorrowDirect', 969081199, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081199 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081199, 'test_bd', 'successful', '2015-02-05 18:01:28')
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1543[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081199[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b000625f76bde14a8c04a0a69695cf4' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:28', '000000000')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081395, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'isbn', 1, '000000000', 969081395, '000000000')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081395, '1b000625f76bde14a8c04a0a69695cf4')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081200 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081200, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:28', 'This item is not currently available from BorrowDirect', 969081200, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081200 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081200, 'test_bd', 'successful', '2015-02-05 18:01:28')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1544[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081200[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f6a002d9ee54d37a927e043aac803ad' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:28', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081396, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'isbn', 1, '9789810743734', 969081396, '9789810743734')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081396, '3f6a002d9ee54d37a927e043aac803ad')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081201 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081201, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.5ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081201 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081201, 'test_bd', 'failed_temporary', '2015-02-05 18:01:28')[0m
[1m[35m (22.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1545
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081201
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ef1c71c15bfe571264567f7ac92688e3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 18:01:28', 'biological foundations of language', '1967')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'book', 969081397, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'auinit', 1, 'eh', 969081397, 'EH')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'aulast', 1, 'lenneberg', 969081397, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'title', 1, 'biological foundations of language', 969081397, 'Biological foundations of language')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'genre', 1, 'book', 969081397, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'date', 1, '1967', 969081397, '1967')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081397, 'info:sid/google', 'ef1c71c15bfe571264567f7ac92688e3')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081202 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081202, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081202 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081202, 'test_bd', 'successful', '2015-02-05 18:01:28')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1546[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081202[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44de3e02dc69ca126d260fc73a623ccf' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:28', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081398, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081398, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'aulast', 1, 'grimes', 969081398, 'Grimes')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081398, '44de3e02dc69ca126d260fc73a623ccf')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081203, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081203 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b5dc1107621817c4b27500b339356b7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 18:01:28', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081399, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'auinit', 1, 'rd', 969081399, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'aulast', 1, 'kaplan', 969081399, 'Kaplan')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'atitle', 1, 'the coming anarchy', 969081399, 'The coming anarchy')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'title', 1, 'the atlantic monthly', 969081399, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'volume', 1, '273', 969081399, '273')
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'issue', 1, '2', 969081399, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'date', 1, '1994', 969081399, '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'spage', 1, '44', 969081399, '44')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'issn', 1, '1072-7825', 969081399, '1072-7825')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081399, 'info:sid/google', '9b5dc1107621817c4b27500b339356b7')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081204 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081204, 'test_bd', 'successful', '2015-02-05 18:01:28')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1547
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081204
[1m[36mServiceResponse Exists (1.5ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081204 LIMIT 1[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8acbf3dae4d3286aad755e21be01d668' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:28', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'format', 'journal', 969081400, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:28', 'isbn', 1, '9789810743734', 969081400, '9789810743734')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081400, '8acbf3dae4d3286aad755e21be01d668')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081205 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081205, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081205 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:28', NULL, 969081205, 'test_bd', 'successful', '2015-02-05 18:01:28')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:28' WHERE `dispatched_services`.`id` = 1548
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081205
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3283ab62bc24987af647b7e0eb6683bb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:29', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'format', 'journal', 969081401, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'isbn', 1, '9789810743734', 969081401, '9789810743734')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081401, '3283ab62bc24987af647b7e0eb6683bb')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081206[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:29', NULL, 969081206, 'test_bd', 'queued', '2015-02-05 18:01:29')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1549
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081206 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081401)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081401)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081206) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081206)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081206 AND `dispatched_services`.`id` = 1549 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081206, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003119s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1549
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081206 LIMIT 1
[1m[36mDispatchedService Load (38.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081401 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081401)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081206 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081206 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081401
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (31.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081206
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 421ms (Views: 127.7ms | ActiveRecord: 152.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 13:01:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb60de10baf2ae58ea8578382e55b090' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:29', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'format', 'book', 969081402, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'genre', 1, 'book', 969081402, 'book')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'author', 1, 'smith', 969081402, 'Smith')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'title', 1, 'some book', 969081402, 'Some Book')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 18:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081402, 'bb60de10baf2ae58ea8578382e55b090')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081207
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:29', NULL, 969081207, 'BorrowDirect', 'queued', '2015-02-05 18:01:29')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1550[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081207 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081402)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081402)[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081207) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081207)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081207 AND `dispatched_services`.`id` = 1550 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081207, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1550[0m
[1m[35m (24.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081207 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081402 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081402)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081207 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081207 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (6.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081402
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (10.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081207
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 273ms (Views: 20.5ms | ActiveRecord: 144.1ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 13:01:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0e531c98c7ba08bbbc6fe3e0bc26da1' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:29', 'foo')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'format', 'journal', 969081403, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'genre', 1, 'article', 969081403, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'title', 1, 'foo', 969081403, 'foo')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:29', 'author', 1, 'bar', 969081403, 'bar')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 18:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081403, 'a0e531c98c7ba08bbbc6fe3e0bc26da1')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081208
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:29', NULL, 969081208, 'BorrowDirect', 'queued', '2015-02-05 18:01:29')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1551[0m
[1m[35m (23.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081208 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081403)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081403)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081208) ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081208)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081208 AND `dispatched_services`.`id` = 1551 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:29' WHERE `dispatched_services`.`id` = 1551
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081208 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081403 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081403)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081208 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081208 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081403[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081208[0m
[1m[35m (20.0ms)[0m COMMIT
Completed 200 OK in 241ms (Views: 16.7ms | ActiveRecord: 148.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd36461d7ddb92cb7e1c9daedfa6fb976' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:30', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'format', 'book', 969081404, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'genre', 1, 'book', 969081404, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'title', 1, 'foo', 969081404, 'foo')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 18:01:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081404, 'd36461d7ddb92cb7e1c9daedfa6fb976')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081209 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (38.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:30', NULL, 969081209, 'BorrowDirect', 'failed_fatal', '2015-02-05 18:01:30')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1552
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081209" for 127.0.0.1 at 2015-02-05 13:01:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081209"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081209 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081404 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081404)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081209
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081209
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081209 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081209 [["request_id", 969081209]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081404 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081404)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081209 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081209 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081404[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081209[0m
[1m[35m (17.8ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 17.8ms | ActiveRecord: 52.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6646b407e59993701cd5af21762ef91f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:30', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'format', 'journal', 969081405, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'isbn', 1, '9789810743734', 969081405, '9789810743734')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081405, '6646b407e59993701cd5af21762ef91f')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081210[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:30', NULL, 969081210, 'BorrowDirect', 'queued', '2015-02-05 18:01:30')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1553
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (5.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081405)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081210) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081210)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`id` = 1553 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081210, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:30', 'Choose your delivery location', 969081210, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1553[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.7ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210[0m
[1m[35mReferent Load (5.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081405 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081210 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081405[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (15.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081210[0m
[1m[35m (19.2ms)[0m COMMIT
Completed 200 OK in 315ms (Views: 24.9ms | ActiveRecord: 160.2ms)
Started GET "/borrow_direct/BorrowDirect/969081210?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:01:30 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081210"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081210 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1553[0m
[1m[35m (44.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:30', 969081210, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (29.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081405 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081210&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 93ms (ActiveRecord: 83.3ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1553
[1m[36m (38.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012054[0m
[1m[35m (18.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081210&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081210", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081405 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081210[0m
[1m[35m (21.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081210 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210[0m [["request_id", 969081210]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081405 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081405)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081210 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081210 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081405
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081210
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 87ms (Views: 21.1ms | ActiveRecord: 56.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 13:01:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '394cb4fb575cd864d2c0880661dc414f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:30', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'format', 'journal', 969081406, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:30', 'isbn', 1, '0109836413', 969081406, '0109836413')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:01:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081406, '394cb4fb575cd864d2c0880661dc414f')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081211
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:30', NULL, 969081211, 'BorrowDirect', 'queued', '2015-02-05 18:01:30')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:30' WHERE `dispatched_services`.`id` = 1554[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081211 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081406)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081406)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081211) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081211)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081211 AND `dispatched_services`.`id` = 1554 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081211, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:31', 'This item is not currently available from BorrowDirect', 969081211, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (36.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1554
[1m[36m (22.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081211 LIMIT 1
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081406 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081406)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081211 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081211 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081406[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081211[0m
[1m[35m (18.6ms)[0m COMMIT
Completed 200 OK in 353ms (Views: 20.8ms | ActiveRecord: 139.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbfb653c01d539118c292f6970d7e8cf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:31', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:31', 'format', 'journal', 969081407, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:31', 'isbn', 1, '9789810743734', 969081407, '9789810743734')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081407, 'cbfb653c01d539118c292f6970d7e8cf')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081212[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:31', NULL, 969081212, 'BorrowDirect', 'queued', '2015-02-05 18:01:31')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1555
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081407)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081212) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081212)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`id` = 1555 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081212, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:31', 'Choose your delivery location', 969081212, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1555[0m
[1m[35m (27.2ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081407 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081212 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081407[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081212[0m
[1m[35m (18.4ms)[0m COMMIT
Completed 200 OK in 298ms (Views: 22.9ms | ActiveRecord: 134.7ms)
Started GET "/borrow_direct/BorrowDirect/969081212?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:01:31 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081212"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081212 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1555[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:31', 969081212, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081407 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081212&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 61ms (ActiveRecord: 46.8ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1555
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012059[0m
[1m[35m (25.5ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081212&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081212", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:31-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081407 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081212[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081212 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212[0m [["request_id", 969081212]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081407 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081407)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081212 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081212 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081407
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081212
[1m[36m (22.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 81ms (Views: 18.5ms | ActiveRecord: 53.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ede681d0682a82de885c0bf4098095d3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:31', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:31', 'format', 'journal', 969081408, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:31', 'isbn', 1, '9789810743734', 969081408, '9789810743734')
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081408, 'ede681d0682a82de885c0bf4098095d3')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081213
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:31', NULL, 969081213, 'BorrowDirect', 'queued', '2015-02-05 18:01:31')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:31' WHERE `dispatched_services`.`id` = 1556[0m
[1m[35m (21.5ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081213 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081408)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081408)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081213) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081213)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081213 AND `dispatched_services`.`id` = 1556 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081213, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:31', 'Choose your delivery location', 969081213, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:32' WHERE `dispatched_services`.`id` = 1556
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081213 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081408 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081408)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081213 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081213 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081213 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081408
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081213
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 337ms (Views: 23.0ms | ActiveRecord: 142.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc44ceaccfebbf8b6b7db28f3ae03ac8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:32', '9789810743734')
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:32', 'format', 'journal', 969081409, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:32', 'isbn', 1, '9789810743734', 969081409, '9789810743734')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081409, 'fc44ceaccfebbf8b6b7db28f3ae03ac8')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081214
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:32', NULL, 969081214, 'BorrowDirect', 'queued', '2015-02-05 18:01:32')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:32' WHERE `dispatched_services`.`id` = 1557[0m
[1m[35m (24.5ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081409)
[1m[36mReferentValue Load (2.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081214) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081214)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (37.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`id` = 1557 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081214, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (24.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:32', 'Choose your delivery location', 969081214, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:32' WHERE `dispatched_services`.`id` = 1557
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081409 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081214 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081409
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081214
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 322ms (Views: 21.9ms | ActiveRecord: 145.4ms)
Started GET "/borrow_direct/BorrowDirect/969081214" for 127.0.0.1 at 2015-02-05 13:01:32 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081214"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081214 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:32', 969081214, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (21.8ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081409 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081214&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.8ms)
Started GET "/resolve?umlaut.request_id=969081214&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081214", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081409 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081214[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214[0m [["request_id", 969081214]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081409 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081409)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081214 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081214 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081214 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081409[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081214[0m
[1m[35m (17.1ms)[0m COMMIT
Completed 200 OK in 83ms (Views: 21.9ms | ActiveRecord: 52.5ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18efbf33241644b7c4e167a4a1350c97' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:46', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081410, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'title', 1, 'title', 969081410, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'author', 1, 'au', 969081410, 'au')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081410, '18efbf33241644b7c4e167a4a1350c97')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:46', 969081215, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (22.7ms)[0m COMMIT
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081215 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081215, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081215 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:46', NULL, 969081215, 'test_bd', 'successful', '2015-02-05 18:01:46')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (1.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:46' WHERE `dispatched_services`.`id` = 1558
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081215
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3d39724665f431eb72c294e15276ce23' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:46', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081411, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'title', 1, 'title', 969081411, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'author', 1, 'au', 969081411, 'au')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081411, '3d39724665f431eb72c294e15276ce23')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (4.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:46', 969081216, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081216 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081216, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081216 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:46', NULL, 969081216, 'test_bd', 'successful', '2015-02-05 18:01:46')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:46' WHERE `dispatched_services`.`id` = 1559[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081216[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d7cf2ec203e97d3fe7b1fd2466d73c0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:46', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081412, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'title', 1, 'title', 969081412, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'author', 1, 'au', 969081412, 'au')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081412, '5d7cf2ec203e97d3fe7b1fd2466d73c0')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:46', 969081217, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (22.3ms)[0m COMMIT
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081217 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081217 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:46', NULL, 969081217, 'test_bd', 'successful', '2015-02-05 18:01:46')
[1m[36m (22.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:46' WHERE `dispatched_services`.`id` = 1560[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081217[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '328993ca1ff267fc2b75f148812e2d65' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:46', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081413, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'isbn', 1, '9789810743734', 969081413, '9789810743734')
[1m[36m (25.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081413, '328993ca1ff267fc2b75f148812e2d65')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081218 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081218, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (16.5ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081218 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:46', NULL, 969081218, 'test_bd', 'failed_temporary', '2015-02-05 18:01:46')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 18:01:46' WHERE `dispatched_services`.`id` = 1561
[1m[36m (29.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081218
[1m[36mRequest Load (2.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db3bfea0a842785f55431e3e0311eae7' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:46', '000000000')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'format', 'journal', 969081414, 'journal')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:46', 'isbn', 1, '000000000', 969081414, '000000000')[0m
[1m[35m (47.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 18:01:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081414, 'db3bfea0a842785f55431e3e0311eae7')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081219 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081219, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 'This item is not currently available from BorrowDirect', 969081219, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (27.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081219 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:47', NULL, 969081219, 'test_bd', 'successful', '2015-02-05 18:01:47')[0m
[1m[35m (48.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1562
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081219
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '90807b892f28467625f75c6d3f7c5ff9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081415, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '0109836413', 969081415, '0109836413')[0m
[1m[35m (38.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081415, '90807b892f28467625f75c6d3f7c5ff9')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081220 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081220, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 'This item is not currently available from BorrowDirect', 969081220, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (24.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081220 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:47', NULL, 969081220, 'test_bd', 'successful', '2015-02-05 18:01:47')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1563
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081220
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b051ac0793fe8a52b145ea7a58727beb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081416, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '9789810743734', 969081416, '9789810743734')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081416, 'b051ac0793fe8a52b145ea7a58727beb')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081221 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081221, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 'Choose your delivery location', 969081221, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081221 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:47', NULL, 969081221, 'test_bd', 'successful', '2015-02-05 18:01:47')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1564
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081221
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ec6e3b12829d38e3234bae58e0fdc696' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081417, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '121212', 969081417, '121212')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081417, 'ec6e3b12829d38e3234bae58e0fdc696')[0m
[1m[35m (17.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081222"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081222 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081222 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969081222
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081222, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081222\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081417 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081417)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081222&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 71ms (ActiveRecord: 26.0ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '46374872662e080b0fb8e9a69d99214f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081418, 'journal')[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '121212', 969081418, '121212')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081418, '46374872662e080b0fb8e9a69d99214f')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081223, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081223"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081223 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081223 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012078
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081223, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012078\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081418 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081418)
Redirected to http://test.host/resolve?umlaut.request_id=969081223&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 28.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '577174080185d0836226f6399b799707' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:47', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'format', 'journal', 969081419, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:47', 'isbn', 1, '121212', 969081419, '121212')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081419, '577174080185d0836226f6399b799707')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081224, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081224"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081224 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081224 ORDER BY id ASC
[1m[36mDispatchedService Load (6.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081224 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:47', NULL, 969081224, 'BorrowDirect', 'in_progress', '2015-02-05 18:01:47')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1565
[1m[36m (22.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:47', 969081224, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081419 LIMIT 1[0m
[1m[35mReferentValue Load (5.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081419)
Redirected to http://test.host/resolve?umlaut.request_id=969081224&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 93ms (ActiveRecord: 82.9ms)
[1m[36mDispatchedService Load (3.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081224[0m
[1m[35mServiceResponse Load (5.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081224 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081224 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:01:47' WHERE `dispatched_services`.`id` = 1565[0m
[1m[35m (28.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012081
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '303c4836b95a7c7d313761d00761e5b6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:48', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'journal', 969081420, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'isbn', 1, '121212', 969081420, '121212')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:01:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081420, '303c4836b95a7c7d313761d00761e5b6')[0m
[1m[35m (17.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081225"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081225 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081225 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:48', 969081225, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (6.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081420 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081420)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081225&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 51ms (ActiveRecord: 43.6ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '01c8c77ded1bb5db676cf76d02f0fc77' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:48', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'journal', 969081421, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'isbn', 1, '9789810743734', 969081421, '9789810743734')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081421, '01c8c77ded1bb5db676cf76d02f0fc77')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081226 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081226, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (19.1ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1d8d28e09dd650d08ef505612d106ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:48', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'journal', 969081422, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'isbn', 1, '9789810743734', 969081422, '9789810743734')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081422, 'c1d8d28e09dd650d08ef505612d106ff')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081227[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:48', NULL, 969081227, 'test_bd', 'queued', '2015-02-05 18:01:48')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:48' WHERE `dispatched_services`.`id` = 1566
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081227 LIMIT 1
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081422)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081422)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081227) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081227)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081227 AND `dispatched_services`.`id` = 1566 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081227, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003483s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 18:01:48' WHERE `dispatched_services`.`id` = 1566
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081227 LIMIT 1
[1m[36mDispatchedService Load (7.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081422 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081422)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081227 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081227 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081422
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081227
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 439ms (Views: 127.5ms | ActiveRecord: 135.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 13:01:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ef387e08d4aa0f64ca517d85d9a9d9a' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:48', 'some book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'book', 969081423, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'genre', 1, 'book', 969081423, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'author', 1, 'smith', 969081423, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'title', 1, 'some book', 969081423, 'Some Book')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 18:01:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081423, '3ef387e08d4aa0f64ca517d85d9a9d9a')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081228
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:48', NULL, 969081228, 'BorrowDirect', 'queued', '2015-02-05 18:01:48')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:48' WHERE `dispatched_services`.`id` = 1567[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081228 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081423)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081423)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081228) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081228)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081228 AND `dispatched_services`.`id` = 1567 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081228, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:48' WHERE `dispatched_services`.`id` = 1567[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081228 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081423 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081423)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081228 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081228 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081423
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081228
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 260ms (Views: 20.3ms | ActiveRecord: 135.7ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 13:01:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31701dac7fff5c818f3e5ff1b4b317c4' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:48', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'format', 'journal', 969081424, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'genre', 1, 'article', 969081424, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'title', 1, 'foo', 969081424, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:48', 'author', 1, 'bar', 969081424, 'bar')
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 18:01:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081424, '31701dac7fff5c818f3e5ff1b4b317c4')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081229
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:49', NULL, 969081229, 'BorrowDirect', 'queued', '2015-02-05 18:01:49')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1568[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081229 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081424)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081424)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081229) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081229)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081229 AND `dispatched_services`.`id` = 1568 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1568
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081229 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081424 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081424)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081229 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081229 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081424[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081229[0m
[1m[35m (18.6ms)[0m COMMIT
Completed 200 OK in 233ms (Views: 18.2ms | ActiveRecord: 136.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2858a4d42ffd3f55f22b9d8a5a87c023' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:49', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'format', 'book', 969081425, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'genre', 1, 'book', 969081425, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'title', 1, 'foo', 969081425, 'foo')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 18:01:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081425, '2858a4d42ffd3f55f22b9d8a5a87c023')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081230 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:49', NULL, 969081230, 'BorrowDirect', 'failed_fatal', '2015-02-05 18:01:49')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1569
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081230" for 127.0.0.1 at 2015-02-05 13:01:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081230"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081230 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081425 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081425)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081230
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081230
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081230 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081230 [["request_id", 969081230]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081425 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081425)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081230 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081230 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081425[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081230[0m
[1m[35m (19.1ms)[0m COMMIT
Completed 200 OK in 80ms (Views: 19.0ms | ActiveRecord: 53.6ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2db99dee1ae9159fa1b1b178dc10ae9b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:49', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'format', 'journal', 969081426, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:49', 'isbn', 1, '9789810743734', 969081426, '9789810743734')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081426, '2db99dee1ae9159fa1b1b178dc10ae9b')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081231[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:49', NULL, 969081231, 'BorrowDirect', 'queued', '2015-02-05 18:01:49')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1570
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081426)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081231) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081231)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`id` = 1570 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081231, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (32.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:49', 'Choose your delivery location', 969081231, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (52.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1570[0m
[1m[35m (30.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081426 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081231 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081426[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081231[0m
[1m[35m (18.0ms)[0m COMMIT
Completed 200 OK in 387ms (Views: 66.4ms | ActiveRecord: 131.3ms)
Started GET "/borrow_direct/BorrowDirect/969081231?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:01:49 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081231"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081231 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1570[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:49', 969081231, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081426 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081231&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 53ms (ActiveRecord: 44.3ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:01:49' WHERE `dispatched_services`.`id` = 1570
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012088[0m
[1m[35m (18.4ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081231&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081231", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081426 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081231[0m
[1m[35m (22.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081231 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231[0m [["request_id", 969081231]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081426 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081426)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081231 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081231 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081426
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081231
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 88ms (Views: 22.3ms | ActiveRecord: 55.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 13:01:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1e5decef2e2a27593e589688b72f546' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:50', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'format', 'journal', 969081427, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'isbn', 1, '0109836413', 969081427, '0109836413')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:01:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081427, 'c1e5decef2e2a27593e589688b72f546')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081232
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:50', NULL, 969081232, 'BorrowDirect', 'queued', '2015-02-05 18:01:50')
[1m[36m (35.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1571[0m
[1m[35m (22.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081232 LIMIT 1[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081427)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081427)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081232) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081232)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081232 AND `dispatched_services`.`id` = 1571 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081232, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:50', 'This item is not currently available from BorrowDirect', 969081232, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1571
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081232 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081427 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081427)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081232 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081232 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081427[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081232[0m
[1m[35m (17.3ms)[0m COMMIT
Completed 200 OK in 302ms (Views: 21.2ms | ActiveRecord: 153.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dab77b99b7fc6a92a331673e84d2f072' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:50', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'format', 'journal', 969081428, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'isbn', 1, '9789810743734', 969081428, '9789810743734')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081428, 'dab77b99b7fc6a92a331673e84d2f072')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081233[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:50', NULL, 969081233, 'BorrowDirect', 'queued', '2015-02-05 18:01:50')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1572
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081428)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081233) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081233)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`id` = 1572 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081233, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:50', 'Choose your delivery location', 969081233, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1572[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081428 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081233 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (44.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (47.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081428[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081233[0m
[1m[35m (16.9ms)[0m COMMIT
Completed 200 OK in 323ms (Views: 65.0ms | ActiveRecord: 131.4ms)
Started GET "/borrow_direct/BorrowDirect/969081233?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:01:50 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081233"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081233 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1572[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:50', 969081233, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081428 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081233&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 52ms (ActiveRecord: 42.7ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:50' WHERE `dispatched_services`.`id` = 1572
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012093[0m
[1m[35m (20.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081233&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081233", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:50-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081428 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081233[0m
[1m[35m (22.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081233 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233[0m [["request_id", 969081233]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081428 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081428)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081233 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081233 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081428
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081233
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 89ms (Views: 19.5ms | ActiveRecord: 59.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '395687d96e499b66175714f82bddc0dc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:50', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'format', 'journal', 969081429, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:50', 'isbn', 1, '9789810743734', 969081429, '9789810743734')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081429, '395687d96e499b66175714f82bddc0dc')[0m
[1m[35m (68.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081234
[1m[36m (61.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:51', NULL, 969081234, 'BorrowDirect', 'queued', '2015-02-05 18:01:51')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (37.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1573[0m
[1m[35m (31.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081234 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081429)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081429)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081234) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081234)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081234 AND `dispatched_services`.`id` = 1573 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081234, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:51', 'Choose your delivery location', 969081234, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1573
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081234 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081429 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081429)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081234 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081234 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081234 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081429
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081234
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 435ms (Views: 23.0ms | ActiveRecord: 282.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:01:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dcf4ef57b058217f9be64cefaf193a67' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:01:51', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'format', 'journal', 969081430, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'isbn', 1, '9789810743734', 969081430, '9789810743734')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:01:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081430, 'dcf4ef57b058217f9be64cefaf193a67')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081235
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:51', NULL, 969081235, 'BorrowDirect', 'queued', '2015-02-05 18:01:51')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1574[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081430)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081235) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081235)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`id` = 1574 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081235, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:51', 'Choose your delivery location', 969081235, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1574
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081430 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081235 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (47.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081430
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081235
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 326ms (Views: 65.0ms | ActiveRecord: 133.2ms)
Started GET "/borrow_direct/BorrowDirect/969081235" for 127.0.0.1 at 2015-02-05 13:01:51 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081235"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081235 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:51', 969081235, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081430 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081235&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.6ms)
Started GET "/resolve?umlaut.request_id=969081235&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:01:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081235", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:01:51-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081430 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081235[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235[0m [["request_id", 969081235]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081430 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081430)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081235 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081235 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081235 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081430[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081235[0m
[1m[35m (18.5ms)[0m COMMIT
Completed 200 OK in 82ms (Views: 22.7ms | ActiveRecord: 50.5ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '958496a576f191174e28a4901c64dec9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:51', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'format', 'journal', 969081431, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081431, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'aulast', 1, 'grimes', 969081431, 'Grimes')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 18:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081431, '958496a576f191174e28a4901c64dec9')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081236, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081236 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ef810118a3dc97111d7a47884e446c9' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 18:01:51', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'format', 'book', 969081432, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'auinit', 1, 'eh', 969081432, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'aulast', 1, 'lenneberg', 969081432, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'title', 1, 'biological foundations of language', 969081432, 'Biological foundations of language')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'genre', 1, 'book', 969081432, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:51', 'date', 1, '1967', 969081432, '1967')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 18:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081432, 'info:sid/google', '0ef810118a3dc97111d7a47884e446c9')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081237 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081237, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081237 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:51', NULL, 969081237, 'test_bd', 'successful', '2015-02-05 18:01:51')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:51' WHERE `dispatched_services`.`id` = 1575[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081237[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9f32ad5a768aa9430edd7a257727da8' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 18:01:52', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'format', 'journal', 969081433, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'auinit', 1, 'rd', 969081433, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'aulast', 1, 'kaplan', 969081433, 'Kaplan')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'atitle', 1, 'the coming anarchy', 969081433, 'The coming anarchy')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'title', 1, 'the atlantic monthly', 969081433, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'volume', 1, '273', 969081433, '273')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'issue', 1, '2', 969081433, '2')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'date', 1, '1994', 969081433, '1994')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'spage', 1, '44', 969081433, '44')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'issn', 1, '1072-7825', 969081433, '1072-7825')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 18:01:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081433, 'info:sid/google', 'd9f32ad5a768aa9430edd7a257727da8')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081238 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:52', NULL, 969081238, 'test_bd', 'successful', '2015-02-05 18:01:52')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:52' WHERE `dispatched_services`.`id` = 1576
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081238
[1m[36mServiceResponse Exists (1.7ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081238 LIMIT 1[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84f0ae74780412d63237f1293e95c774' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:01:52', 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'format', 'journal', 969081434, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'title', 1, 'title', 969081434, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:01:52', 'author', 1, 'au', 969081434, 'au')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:01:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081434, '84f0ae74780412d63237f1293e95c774')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:01:52', 969081239, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:01:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081239, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081239 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:01:52', NULL, 969081239, 'test_bd', 'successful', '2015-02-05 18:01:52')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:01:52' WHERE `dispatched_services`.`id` = 1577[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081239[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081239 ORDER BY id ASC
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35m (0.9ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.9ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '515900574401d41cd08f6b361e61d6a6' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:02', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'format', 'journal', 969081435, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'isbn', 1, '000000000', 969081435, '000000000')
[1m[36m (25.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 18:02:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081435, '515900574401d41cd08f6b361e61d6a6')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081240 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081240, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:02', 'This item is not currently available from BorrowDirect', 969081240, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081240 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:02', NULL, 969081240, 'test_bd', 'successful', '2015-02-05 18:02:02')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:02' WHERE `dispatched_services`.`id` = 1578[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081240[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4cc9a730021b67a8e0179521cf35284b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:02', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'format', 'journal', 969081436, 'journal')[0m
[1m[35mSQL (2.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'isbn', 1, '0109836413', 969081436, '0109836413')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:02:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081436, '4cc9a730021b67a8e0179521cf35284b')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081241 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081241, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:02', 'This item is not currently available from BorrowDirect', 969081241, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081241 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:02', NULL, 969081241, 'test_bd', 'successful', '2015-02-05 18:02:02')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:02' WHERE `dispatched_services`.`id` = 1579[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081241[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '22b1dad365378987e15b7907e12fe566' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:02', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'format', 'journal', 969081437, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'isbn', 1, '9789810743734', 969081437, '9789810743734')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081437, '22b1dad365378987e15b7907e12fe566')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081242 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081242, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:02', 'Choose your delivery location', 969081242, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081242 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:02', NULL, 969081242, 'test_bd', 'successful', '2015-02-05 18:02:02')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:02' WHERE `dispatched_services`.`id` = 1580[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081242[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b0a439a01ab4d89d676947e8aceb2cf2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:02', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'format', 'journal', 969081438, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:02', 'isbn', 1, '9789810743734', 969081438, '9789810743734')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081438, 'b0a439a01ab4d89d676947e8aceb2cf2')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081243 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081243, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (19.8ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081243 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:02', NULL, 969081243, 'test_bd', 'failed_temporary', '2015-02-05 18:02:02')[0m
[1m[35m (22.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1581
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081243
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c1ac1d19a0bd5bf6bd772273f1963e6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:03', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'format', 'journal', 969081439, 'journal')
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'title', 1, 'title', 969081439, 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'author', 1, 'au', 969081439, 'au')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:02:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081439, '4c1ac1d19a0bd5bf6bd772273f1963e6')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:03', 969081244, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081244 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081244, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081244 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:03', NULL, 969081244, 'test_bd', 'successful', '2015-02-05 18:02:03')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1582[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081244[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1b35c4bc790e24507c9c48eda709cd9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:03', 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'format', 'journal', 969081440, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'title', 1, 'title', 969081440, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'author', 1, 'au', 969081440, 'au')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:02:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081440, 'e1b35c4bc790e24507c9c48eda709cd9')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:03', 969081245, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081245 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081245, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081245 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:03', NULL, 969081245, 'test_bd', 'successful', '2015-02-05 18:02:03')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1583
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081245
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c70eb06f440ba48c037f05d9cc30115' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:03', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'format', 'journal', 969081441, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'title', 1, 'title', 969081441, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'author', 1, 'au', 969081441, 'au')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:02:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081441, '4c70eb06f440ba48c037f05d9cc30115')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:03', 969081246, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081246 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081246 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:03', NULL, 969081246, 'test_bd', 'successful', '2015-02-05 18:02:03')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1584
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081246
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '525c595a687e264de56f49ea1459960a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:03', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'format', 'journal', 969081442, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:03', 'isbn', 1, '9789810743734', 969081442, '9789810743734')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081442, '525c595a687e264de56f49ea1459960a')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081247[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:03', NULL, 969081247, 'test_bd', 'queued', '2015-02-05 18:02:03')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1585
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081247 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081442)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081442)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081247) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081247)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (25.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081247 AND `dispatched_services`.`id` = 1585 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081247, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003355s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 18:02:03' WHERE `dispatched_services`.`id` = 1585
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081247 LIMIT 1
[1m[36mDispatchedService Load (7.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (34.9ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081442 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081442)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081247 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081247 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (97.4ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081442[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (11.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081247[0m
[1m[35m (18.3ms)[0m COMMIT
Completed 200 OK in 482ms (Views: 141.7ms | ActiveRecord: 134.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 13:02:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e702ae0cf6084322a35b84af5fac6b11' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:04', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'format', 'book', 969081443, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'genre', 1, 'book', 969081443, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'author', 1, 'smith', 969081443, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'title', 1, 'some book', 969081443, 'Some Book')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 18:02:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081443, 'e702ae0cf6084322a35b84af5fac6b11')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081248[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:04', NULL, 969081248, 'BorrowDirect', 'queued', '2015-02-05 18:02:04')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1586
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081248 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081443)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081443)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081248) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081248)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081248 AND `dispatched_services`.`id` = 1586 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081248, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1586
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081248 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081443 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081443)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081248 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081248 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (2.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081443[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081248[0m
[1m[35m (17.0ms)[0m COMMIT
Completed 200 OK in 266ms (Views: 19.7ms | ActiveRecord: 144.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 13:02:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '574ef343c157fff977913666e134e8a3' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:04', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'format', 'journal', 969081444, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'genre', 1, 'article', 969081444, 'article')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'title', 1, 'foo', 969081444, 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'author', 1, 'bar', 969081444, 'bar')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 18:02:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081444, '574ef343c157fff977913666e134e8a3')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36mSQL (2.6ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081249[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:04', NULL, 969081249, 'BorrowDirect', 'queued', '2015-02-05 18:02:04')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1587
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081249 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081444)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081444)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081249) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081249)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081249 AND `dispatched_services`.`id` = 1587 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1587[0m
[1m[35m (21.8ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081249 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081444 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081444)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081249 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081249 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081444[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081249[0m
[1m[35m (16.6ms)[0m COMMIT
Completed 200 OK in 234ms (Views: 17.2ms | ActiveRecord: 136.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc6bf8a594d9945e935e1c4839f14168' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:04', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'format', 'book', 969081445, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'genre', 1, 'book', 969081445, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'title', 1, 'foo', 969081445, 'foo')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 18:02:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081445, 'cc6bf8a594d9945e935e1c4839f14168')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081250 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:04', NULL, 969081250, 'BorrowDirect', 'failed_fatal', '2015-02-05 18:02:04')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1588
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081250" for 127.0.0.1 at 2015-02-05 13:02:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081250"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081250 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081445 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081445)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081250
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081250
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081250 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081250 [["request_id", 969081250]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081445 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081445)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081250 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081250 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081445[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081250[0m
[1m[35m (18.3ms)[0m COMMIT
Completed 200 OK in 119ms (Views: 19.5ms | ActiveRecord: 53.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (3.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ae7f7ad6ba97f5788b3f5e58b101581' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:04', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'format', 'journal', 969081446, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:04', 'isbn', 1, '9789810743734', 969081446, '9789810743734')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081446, '6ae7f7ad6ba97f5788b3f5e58b101581')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081251[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:04', NULL, 969081251, 'BorrowDirect', 'queued', '2015-02-05 18:02:04')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:04' WHERE `dispatched_services`.`id` = 1589
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081446)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081251) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081251)
[1m[36mDispatchedService Load (3.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`id` = 1589 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081251, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:04', 'Choose your delivery location', 969081251, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1589[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081446 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081251 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081446[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081251[0m
[1m[35m (17.6ms)[0m COMMIT
Completed 200 OK in 289ms (Views: 24.1ms | ActiveRecord: 134.5ms)
Started GET "/borrow_direct/BorrowDirect/969081251?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:02:05 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081251"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081251 ORDER BY id ASC
[1m[36mDispatchedService Load (3.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1589[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:05', 969081251, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081446 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081251&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 56ms (ActiveRecord: 45.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1589
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012119[0m
[1m[35m (16.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081251&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:02:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081251", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:02:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081446 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081251[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081251 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251[0m [["request_id", 969081251]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081446 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081446)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081251 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (3.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081251 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081446
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081251
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 84ms (Views: 20.5ms | ActiveRecord: 53.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 13:02:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f82f0ebd4b8999291647eaf03879fa9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:05', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:05', 'format', 'journal', 969081447, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:05', 'isbn', 1, '0109836413', 969081447, '0109836413')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:02:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081447, '2f82f0ebd4b8999291647eaf03879fa9')[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081252
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:05', NULL, 969081252, 'BorrowDirect', 'queued', '2015-02-05 18:02:05')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1590[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081252 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081447)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081447)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081252) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081252)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081252 AND `dispatched_services`.`id` = 1590 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081252, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:05', 'This item is not currently available from BorrowDirect', 969081252, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1590
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081252 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081447 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081447)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081252 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081252 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081447[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081252[0m
[1m[35m (17.4ms)[0m COMMIT
Completed 200 OK in 322ms (Views: 20.2ms | ActiveRecord: 136.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (3.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9a1525efdb7ffa5c7a4f9628d84579f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:05', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:05', 'format', 'journal', 969081448, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:05', 'isbn', 1, '9789810743734', 969081448, '9789810743734')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081448, 'f9a1525efdb7ffa5c7a4f9628d84579f')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081253[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:05', NULL, 969081253, 'BorrowDirect', 'queued', '2015-02-05 18:02:05')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1591
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081448)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081253) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (3.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081253)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`id` = 1591 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081253, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:05', 'Choose your delivery location', 969081253, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1591[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1[0m
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253
[1m[36mDispatchedService Load (3.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (4.7ms)
[1m[35mReferent Load (3.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081448 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081253 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081448[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081253[0m
[1m[35m (18.1ms)[0m COMMIT
Completed 200 OK in 291ms (Views: 21.9ms | ActiveRecord: 139.8ms)
Started GET "/borrow_direct/BorrowDirect/969081253?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:02:05 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081253"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081253 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:02:05' WHERE `dispatched_services`.`id` = 1591[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:05', 969081253, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081448 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081253&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 52ms (ActiveRecord: 43.2ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1591
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012124[0m
[1m[35m (18.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081253&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:02:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081253", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:02:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081448 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081253[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081253 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253[0m [["request_id", 969081253]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081448 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081448)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.9ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081253 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081253 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081448
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081253
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 79ms (Views: 18.9ms | ActiveRecord: 51.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7de444ec783050df36013fd431ec3873' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:06', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'format', 'journal', 969081449, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'isbn', 1, '9789810743734', 969081449, '9789810743734')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081449, '7de444ec783050df36013fd431ec3873')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081254
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:06', NULL, 969081254, 'BorrowDirect', 'queued', '2015-02-05 18:02:06')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1592[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081254 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081449)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081449)[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081254) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081254)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081254 AND `dispatched_services`.`id` = 1592 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081254, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:06', 'Choose your delivery location', 969081254, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1592
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081254 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254
[1m[36mReferent Load (3.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081449 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081449)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081254 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081254 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081254 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081449
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081254
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 326ms (Views: 21.5ms | ActiveRecord: 134.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:02:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b287bb32a9a7807fe08aa50194466b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:06', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'format', 'journal', 969081450, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'isbn', 1, '9789810743734', 969081450, '9789810743734')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081450, '5b287bb32a9a7807fe08aa50194466b3')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081255
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:06', NULL, 969081255, 'BorrowDirect', 'queued', '2015-02-05 18:02:06')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1593[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1[0m
[1m[35mReferent Load (3.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081450)
[1m[36mReferentValue Load (3.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081255) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081255)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`id` = 1593 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081255, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:06', 'Choose your delivery location', 969081255, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:02:06' WHERE `dispatched_services`.`id` = 1593
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081450 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081255 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081450
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081255
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 287ms (Views: 22.7ms | ActiveRecord: 133.3ms)
Started GET "/borrow_direct/BorrowDirect/969081255" for 127.0.0.1 at 2015-02-05 13:02:06 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081255"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081255 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:06', 969081255, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081450 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081255&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 24.3ms)
Started GET "/resolve?umlaut.request_id=969081255&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:02:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081255", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:02:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081450 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081255[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255[0m [["request_id", 969081255]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081450 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081450)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081255 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081255 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081255 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081450[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081255[0m
[1m[35m (17.9ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 22.4ms | ActiveRecord: 49.8ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbd6d30ae41fb15fc25c88d19382e4c9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:06', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'format', 'journal', 969081451, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'title', 1, 'title', 969081451, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:06', 'author', 1, 'au', 969081451, 'au')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:02:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081451, 'dbd6d30ae41fb15fc25c88d19382e4c9')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081256, '--- {}\n', 'test_holding', 'holding')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081256, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (3.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081256 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:07', NULL, 969081256, 'test_bd', 'successful', '2015-02-05 18:02:07')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1594
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081256
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081256 ORDER BY id ASC[0m
[1m[35mRequest Load (3.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f2b299d9888e998bbf4c864d75ded78' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081452, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '9789810743734', 969081452, '9789810743734')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081452, '0f2b299d9888e998bbf4c864d75ded78')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081257 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081257, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081257 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:07', NULL, 969081257, 'test_bd', 'successful', '2015-02-05 18:02:07')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1595
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081257
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (3.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 4ms (Views: 0.2ms | ActiveRecord: 3.1ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ecf6844acb2e858b15361d93b0920fb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081453, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '121212', 969081453, '121212')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081453, '7ecf6844acb2e858b15361d93b0920fb')[0m
[1m[35m (17.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081258"}
[1m[36mRequest Load (3.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081258 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081258 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969081258
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081258, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081258\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081453 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081453)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081258&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 28.3ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0baa7ce15e3ce9ea6d52e6741eff8ba' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081454, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '121212', 969081454, '121212')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081454, 'd0baa7ce15e3ce9ea6d52e6741eff8ba')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081259, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081259"}
[1m[35mRequest Load (3.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081259 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081259 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012134
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081259, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012134\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (22.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081454 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081454)
Redirected to http://test.host/resolve?umlaut.request_id=969081259&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 40ms (ActiveRecord: 33.0ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '196f692138a7f4ec4d1f5461d5dc2d11' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081455, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '121212', 969081455, '121212')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081455, '196f692138a7f4ec4d1f5461d5dc2d11')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081260, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081260"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081260 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081260 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081260 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:07', NULL, 969081260, 'BorrowDirect', 'in_progress', '2015-02-05 18:02:07')[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1596
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081260, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081455 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081455)
Redirected to http://test.host/resolve?umlaut.request_id=969081260&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 83ms (ActiveRecord: 70.1ms)
[1m[36mDispatchedService Load (4.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081260[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081260 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081260 ORDER BY id ASC[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1596[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012137
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6be84b7acafd1db70d28efdb4dfba438' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:02:07', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081456, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'isbn', 1, '121212', 969081456, '121212')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081456, '6be84b7acafd1db70d28efdb4dfba438')[0m
[1m[35m (17.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081261"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081261 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081261 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:02:07', 969081261, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081456 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081456)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081261&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A02%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 25.1ms)
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '012c01de90b3ec13ef5624b6c5a7a65e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:02:07', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081457, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081457, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'aulast', 1, 'grimes', 969081457, 'Grimes')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081457, '012c01de90b3ec13ef5624b6c5a7a65e')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081262, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081262 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b80127da8dfa870bf95092bc46046fc' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 18:02:07', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'journal', 969081458, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'auinit', 1, 'rd', 969081458, 'RD')
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'aulast', 1, 'kaplan', 969081458, 'Kaplan')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'atitle', 1, 'the coming anarchy', 969081458, 'The coming anarchy')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'title', 1, 'the atlantic monthly', 969081458, 'The Atlantic monthly')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'volume', 1, '273', 969081458, '273')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'issue', 1, '2', 969081458, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'date', 1, '1994', 969081458, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'spage', 1, '44', 969081458, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'issn', 1, '1072-7825', 969081458, '1072-7825')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081458, 'info:sid/google', '7b80127da8dfa870bf95092bc46046fc')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081263 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:07', NULL, 969081263, 'test_bd', 'successful', '2015-02-05 18:02:07')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:07' WHERE `dispatched_services`.`id` = 1597
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081263
[1m[36mServiceResponse Exists (1.8ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081263 LIMIT 1[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41194249ea1d9966aa61fa75f7de6f26' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 18:02:07', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'format', 'book', 969081459, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'auinit', 1, 'eh', 969081459, 'EH')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'aulast', 1, 'lenneberg', 969081459, 'Lenneberg')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'title', 1, 'biological foundations of language', 969081459, 'Biological foundations of language')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'genre', 1, 'book', 969081459, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:02:07', 'date', 1, '1967', 969081459, '1967')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 18:02:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081459, 'info:sid/google', '41194249ea1d9966aa61fa75f7de6f26')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081264 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:02:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081264, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081264 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:02:08', NULL, 969081264, 'test_bd', 'successful', '2015-02-05 18:02:08')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:02:08' WHERE `dispatched_services`.`id` = 1598
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081264
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49af0d2423dc4faa9655e32fd071f9d8' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-05 18:09:31', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'format', 'book', 969081460, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'auinit', 1, 'eh', 969081460, 'EH')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'aulast', 1, 'lenneberg', 969081460, 'Lenneberg')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'title', 1, 'biological foundations of language', 969081460, 'Biological foundations of language')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'genre', 1, 'book', 969081460, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:31', 'date', 1, '1967', 969081460, '1967')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-05 18:09:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081460, 'info:sid/google', '49af0d2423dc4faa9655e32fd071f9d8')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081265 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081265, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081265 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:32', NULL, 969081265, 'test_bd', 'successful', '2015-02-05 18:09:32')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1599
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081265
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81f4ba528a45d771d7b1ff44db69e138' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-05 18:09:32', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'format', 'journal', 969081461, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'auinit', 1, 'rd', 969081461, 'RD')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'aulast', 1, 'kaplan', 969081461, 'Kaplan')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'atitle', 1, 'the coming anarchy', 969081461, 'The coming anarchy')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'title', 1, 'the atlantic monthly', 969081461, 'The Atlantic monthly')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'volume', 1, '273', 969081461, '273')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'issue', 1, '2', 969081461, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'date', 1, '1994', 969081461, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'spage', 1, '44', 969081461, '44')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'issn', 1, '1072-7825', 969081461, '1072-7825')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-05 18:09:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081461, 'info:sid/google', '81f4ba528a45d771d7b1ff44db69e138')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081266 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:32', NULL, 969081266, 'test_bd', 'successful', '2015-02-05 18:09:32')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1600[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081266[0m
[1m[35mServiceResponse Exists (1.7ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081266 LIMIT 1
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3e15f7606befaacf2b433644d460a019' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:32', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'format', 'journal', 969081462, 'journal')
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969081462, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'aulast', 1, 'grimes', 969081462, 'Grimes')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-05 18:09:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081462, '3e15f7606befaacf2b433644d460a019')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081267, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081267 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ad26a26b2c22e3424e3c45e4f9e664a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:32', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'format', 'journal', 969081463, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'title', 1, 'title', 969081463, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'author', 1, 'au', 969081463, 'au')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:09:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081463, '3ad26a26b2c22e3424e3c45e4f9e664a')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:32', 969081268, '--- {}\n', 'test_holding', 'holding')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081268, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081268 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:32', NULL, 969081268, 'test_bd', 'successful', '2015-02-05 18:09:32')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1601
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081268
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081268 ORDER BY id ASC[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e37db241d34cd7334355c74b226b3877' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:32', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'format', 'journal', 969081464, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:32', 'isbn', 1, '9789810743734', 969081464, '9789810743734')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081464, 'e37db241d34cd7334355c74b226b3877')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081269
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:32', NULL, 969081269, 'test_bd', 'queued', '2015-02-05 18:09:32')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1602[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081269 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081464)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081464)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081269) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081269)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (24.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081269 AND `dispatched_services`.`id` = 1602 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081269, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003974s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-05 18:09:32' WHERE `dispatched_services`.`id` = 1602[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081269 LIMIT 1[0m
[1m[35mDispatchedService Load (4.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081464 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081464)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081269 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (35.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (38.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081269 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (93.9ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081464[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081269[0m
[1m[35m (17.0ms)[0m COMMIT
Completed 200 OK in 474ms (Views: 139.7ms | ActiveRecord: 130.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-05 13:09:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '27f86710f3e360c3855cc8efde968368' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:33', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'format', 'book', 969081465, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'genre', 1, 'book', 969081465, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'author', 1, 'smith', 969081465, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'title', 1, 'some book', 969081465, 'Some Book')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-05 18:09:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081465, '27f86710f3e360c3855cc8efde968368')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081270[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:33', NULL, 969081270, 'BorrowDirect', 'queued', '2015-02-05 18:09:33')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1603
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081270 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081465)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081465)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081270) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081270)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081270 AND `dispatched_services`.`id` = 1603 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081270, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1603
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081270 LIMIT 1
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081465 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081465)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081270 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081270 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081465[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081270[0m
[1m[35m (19.6ms)[0m COMMIT
Completed 200 OK in 263ms (Views: 19.0ms | ActiveRecord: 145.0ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-05 13:09:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe2fce210cca5994b9efe1df52a97ac1' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:33', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'format', 'journal', 969081466, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'genre', 1, 'article', 969081466, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'title', 1, 'foo', 969081466, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'author', 1, 'bar', 969081466, 'bar')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-05 18:09:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081466, 'fe2fce210cca5994b9efe1df52a97ac1')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081271[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:33', NULL, 969081271, 'BorrowDirect', 'queued', '2015-02-05 18:09:33')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1604
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081271 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081466)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081466)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081271) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081271)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081271 AND `dispatched_services`.`id` = 1604 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1604[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081271 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081466 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081466)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081271 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081271 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081466
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081271
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 228ms (Views: 18.4ms | ActiveRecord: 132.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b96edf047c5dc383a50eaa948e663483' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:33', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'format', 'book', 969081467, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'genre', 1, 'book', 969081467, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'title', 1, 'foo', 969081467, 'foo')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-05 18:09:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081467, 'b96edf047c5dc383a50eaa948e663483')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081272 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:33', NULL, 969081272, 'BorrowDirect', 'failed_fatal', '2015-02-05 18:09:33')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1605[0m
[1m[35m (17.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081272" for 127.0.0.1 at 2015-02-05 13:09:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081272"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081272 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081467 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081467)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081272[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081272[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081272 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081272[0m [["request_id", 969081272]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081467 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081467)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081272 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081272 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081467
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081272
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 79ms (Views: 18.1ms | ActiveRecord: 53.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4cdb5a6c44cb64ed03b673fb75d0a0a5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:33', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'format', 'journal', 969081468, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:33', 'isbn', 1, '9789810743734', 969081468, '9789810743734')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081468, '4cdb5a6c44cb64ed03b673fb75d0a0a5')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081273
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:33', NULL, 969081273, 'BorrowDirect', 'queued', '2015-02-05 18:09:33')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:33' WHERE `dispatched_services`.`id` = 1606[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081468)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468)[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081273) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081273)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`id` = 1606 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081273, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 'Choose your delivery location', 969081273, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1606
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081468 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081273 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081468
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081273
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 285ms (Views: 23.5ms | ActiveRecord: 133.9ms)
Started GET "/borrow_direct/BorrowDirect/969081273?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:09:34 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081273"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081273 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1606
[1m[36m (22.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 969081273, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081468 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081273&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 58ms (ActiveRecord: 48.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1606[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012149
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081273&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:09:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081273", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:09:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081468 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081273
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081273 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 [["request_id", 969081273]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081468 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081468)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081273 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081273 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081468[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081273[0m
[1m[35m (16.6ms)[0m COMMIT
Completed 200 OK in 80ms (Views: 20.1ms | ActiveRecord: 50.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-05 13:09:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5597f6e1e79daa62e00fd8902852d774' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:34', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:34', 'format', 'journal', 969081469, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:34', 'isbn', 1, '0109836413', 969081469, '0109836413')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:09:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081469, '5597f6e1e79daa62e00fd8902852d774')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081274[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:34', NULL, 969081274, 'BorrowDirect', 'queued', '2015-02-05 18:09:34')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1607
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081274 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081469)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081469)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081274) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081274)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081274 AND `dispatched_services`.`id` = 1607 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081274, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 'This item is not currently available from BorrowDirect', 969081274, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1607[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081274 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081469 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081469)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081274 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081274 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081469
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081274
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 316ms (Views: 19.3ms | ActiveRecord: 132.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '823f9f63f498ec07d88ff0b9d732647c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:34', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:34', 'format', 'journal', 969081470, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:34', 'isbn', 1, '9789810743734', 969081470, '9789810743734')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081470, '823f9f63f498ec07d88ff0b9d732647c')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081275
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:34', NULL, 969081275, 'BorrowDirect', 'queued', '2015-02-05 18:09:34')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1608[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081470)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081275) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081275)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`id` = 1608 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081275, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 'Choose your delivery location', 969081275, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1608
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081470 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081275 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081470
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081275
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 280ms (Views: 22.1ms | ActiveRecord: 131.8ms)
Started GET "/borrow_direct/BorrowDirect/969081275?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-05 13:09:34 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081275"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081275 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-05 18:09:34' WHERE `dispatched_services`.`id` = 1608
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:34', 969081275, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081470 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081275&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 53ms (ActiveRecord: 44.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1608[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012154
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081275&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:09:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081275", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:09:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081470 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081275
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081275 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 [["request_id", 969081275]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081470 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081470)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081275 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081275 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081470[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081275[0m
[1m[35m (17.1ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 18.0ms | ActiveRecord: 48.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbb5093d718569b2ecda7f48a39b5252' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:35', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'format', 'journal', 969081471, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'isbn', 1, '9789810743734', 969081471, '9789810743734')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081471, 'cbb5093d718569b2ecda7f48a39b5252')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081276[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:35', NULL, 969081276, 'BorrowDirect', 'queued', '2015-02-05 18:09:35')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1609
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081276 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081471)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081471)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081276) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081276)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081276 AND `dispatched_services`.`id` = 1609 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081276, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:35', 'Choose your delivery location', 969081276, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (22.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1609[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081276 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081471 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081471)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081276 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081276 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081276 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081471[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081276[0m
[1m[35m (19.0ms)[0m COMMIT
Completed 200 OK in 329ms (Views: 21.3ms | ActiveRecord: 132.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-05 13:09:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0844d8117f907ae850b198ffcc30f17' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:35', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'format', 'journal', 969081472, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'isbn', 1, '9789810743734', 969081472, '9789810743734')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969081472, 'a0844d8117f907ae850b198ffcc30f17')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081277[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:35', NULL, 969081277, 'BorrowDirect', 'queued', '2015-02-05 18:09:35')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1610
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969081472)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081277) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081277)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`id` = 1610 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081277, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:35', 'Choose your delivery location', 969081277, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-05 18:09:35' WHERE `dispatched_services`.`id` = 1610[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081472 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081277 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081472[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081277[0m
[1m[35m (17.4ms)[0m COMMIT
Completed 200 OK in 282ms (Views: 22.7ms | ActiveRecord: 132.5ms)
Started GET "/borrow_direct/BorrowDirect/969081277" for 127.0.0.1 at 2015-02-05 13:09:35 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081277"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081277 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:35', 969081277, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081472 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081277&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.3ms)
Started GET "/resolve?umlaut.request_id=969081277&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-05 13:09:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081277", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-05T13:09:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081472 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081277
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 [["request_id", 969081277]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081472 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081472)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081277 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081277 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081277 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969081472
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081277
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 84ms (Views: 21.2ms | ActiveRecord: 54.0ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62898108fac2538e1f8d474af079af62' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:35', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'format', 'journal', 969081473, 'journal')[0m
[1m[35mSQL (3.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'title', 1, 'title', 969081473, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:35', 'author', 1, 'au', 969081473, 'au')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:09:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081473, '62898108fac2538e1f8d474af079af62')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:35', 969081278, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081278 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081278 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:35', NULL, 969081278, 'test_bd', 'successful', '2015-02-05 18:09:35')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1611[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081278[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dae074baad70ba9fc2bcc42138a9bd05' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:36', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081474, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'title', 1, 'title', 969081474, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'author', 1, 'au', 969081474, 'au')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081474, 'dae074baad70ba9fc2bcc42138a9bd05')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 969081279, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (23.0ms)[0m COMMIT
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081279 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081279, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081279 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081279, 'test_bd', 'successful', '2015-02-05 18:09:36')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1612
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081279
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80a7c8a7fcc127095cf40976ca9d551b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-05 18:09:36', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081475, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'title', 1, 'title', 969081475, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'author', 1, 'au', 969081475, 'au')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081475, '80a7c8a7fcc127095cf40976ca9d551b')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 969081280, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081280 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081280, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081280 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081280, 'test_bd', 'successful', '2015-02-05 18:09:36')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1613[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081280[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96828b3c722928ea1d1532ebd7c7f971' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081476, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '9789810743734', 969081476, '9789810743734')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081476, '96828b3c722928ea1d1532ebd7c7f971')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081281 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081281, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081281 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081281, 'test_bd', 'successful', '2015-02-05 18:09:36')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1614
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081281
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '810cb1f0ab3ad10b4ab2011f7f96a7fe' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081477, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '000000000', 969081477, '000000000')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081477, '810cb1f0ab3ad10b4ab2011f7f96a7fe')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081282 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081282, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 'This item is not currently available from BorrowDirect', 969081282, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081282 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081282, 'test_bd', 'successful', '2015-02-05 18:09:36')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1615
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081282
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7fc93f605e571c44f0a94fed750178c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081478, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '9789810743734', 969081478, '9789810743734')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081478, 'b7fc93f605e571c44f0a94fed750178c')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081283 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081283, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 'Choose your delivery location', 969081283, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081283 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081283, 'test_bd', 'successful', '2015-02-05 18:09:36')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1616
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081283
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59d51384dabfa0196e3857d42d0c7578' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081479, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '0109836413', 969081479, '0109836413')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (3.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081479, '59d51384dabfa0196e3857d42d0c7578')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081284 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081284, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:36', 'This item is not currently available from BorrowDirect', 969081284, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081284 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:36', NULL, 969081284, 'test_bd', 'successful', '2015-02-05 18:09:36')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:36' WHERE `dispatched_services`.`id` = 1617
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081284
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd78d4c7ec6b7cb445db714b805fdb430' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:36', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'format', 'journal', 969081480, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:36', 'isbn', 1, '9789810743734', 969081480, '9789810743734')[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-05 18:09:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081480, 'd78d4c7ec6b7cb445db714b805fdb430')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081285 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-05 18:09:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081285, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081285 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:37', NULL, 969081285, 'test_bd', 'failed_temporary', '2015-02-05 18:09:37')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-05 18:09:37' WHERE `dispatched_services`.`id` = 1618[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081285[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04ad0c7dcd7c4bd8ca9e175b3bd0cd72' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:37', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'format', 'journal', 969081481, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'isbn', 1, '121212', 969081481, '121212')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:09:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081481, '04ad0c7dcd7c4bd8ca9e175b3bd0cd72')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081286"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081286 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081286 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969081286
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081286, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081286\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081481 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081481)
Redirected to http://test.host/resolve?umlaut.request_id=969081286&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.3ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab1162d2500261d578b5d1cb0b9aae39' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:37', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'format', 'journal', 969081482, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'isbn', 1, '121212', 969081482, '121212')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:09:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081482, 'ab1162d2500261d578b5d1cb0b9aae39')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081287, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081287"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081287 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081287 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012174
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081287, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012174\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081482 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081482)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081287&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.7ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '86451673a0fd7158e484e93979b4b0a8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:37', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'format', 'journal', 969081483, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'isbn', 1, '121212', 969081483, '121212')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:09:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081483, '86451673a0fd7158e484e93979b4b0a8')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081288, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081288"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081288 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081288 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081288 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-05 18:09:37', NULL, 969081288, 'BorrowDirect', 'in_progress', '2015-02-05 18:09:37')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-05 18:09:37' WHERE `dispatched_services`.`id` = 1619[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081288, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081483 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081483)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081288&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 76ms (ActiveRecord: 66.1ms)
[1m[35mDispatchedService Load (2.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081288
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081288 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081288 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-05 18:09:37' WHERE `dispatched_services`.`id` = 1619
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012177[0m
[1m[35m (18.1ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '762b4d51b5fb163a2ef3fa769cf80516' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-05 18:09:37', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'format', 'journal', 969081484, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-05 18:09:37', 'isbn', 1, '121212', 969081484, '121212')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-05 18:09:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969081484, '762b4d51b5fb163a2ef3fa769cf80516')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081289"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081289 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081289 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-05 18:09:37', 969081289, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969081484 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969081484)
Redirected to http://test.host/resolve?umlaut.request_id=969081289&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-05T13%3A09%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 27.1ms)
[1m[36mActiveRecord::SchemaMigration Load (5.6ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (3.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23074fed200e3ec5ce8b8ae2764fe0ea' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (4.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.9ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:03', 'title')
[1m[36mSQL (5.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'format', 'journal', 969082168, 'journal')[0m
[1m[35mSQL (4.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'title', 1, 'title', 969082168, 'title')
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'author', 1, 'au', 969082168, 'au')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (4.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082168, '23074fed200e3ec5ce8b8ae2764fe0ea')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (3.9ms)[0m BEGIN
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:03', 969081889, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081889 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (5.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081889 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (3.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:03', NULL, 969081889, 'test_bd', 'successful', '2015-02-11 16:08:03')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (2.7ms)[0m BEGIN
[1m[36mSQL (2.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:03' WHERE `dispatched_services`.`id` = 2070[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36mDispatchedService Load (3.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081889[0m
[1m[35mRequest Load (3.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '938c4aa8df0d60c16974d3c105649c21' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (3.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:03', 'title')
[1m[36mSQL (3.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'format', 'journal', 969082169, 'journal')[0m
[1m[35mSQL (3.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'title', 1, 'title', 969082169, 'title')
[1m[36mSQL (3.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'author', 1, 'au', 969082169, 'au')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (3.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082169, '938c4aa8df0d60c16974d3c105649c21')
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
[1m[35m (4.8ms)[0m BEGIN
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:03', 969081890, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mServiceResponse Load (5.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081890 ORDER BY id ASC[0m
[1m[35m (3.7ms)[0m BEGIN
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081890, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mDispatchedService Load (4.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081890 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (3.7ms)[0m BEGIN
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:03', NULL, 969081890, 'test_bd', 'successful', '2015-02-11 16:08:03')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (4.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:03' WHERE `dispatched_services`.`id` = 2071
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (4.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081890
[1m[36mRequest Load (6.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aae53fdb824d0713a1e91f252b9795a7' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (4.7ms)[0m BEGIN
[1m[36mSQL (6.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:03', 'title')[0m
[1m[35mSQL (4.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'format', 'journal', 969082170, 'journal')
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'title', 1, 'title', 969082170, 'title')[0m
[1m[35mSQL (5.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:03', 'author', 1, 'au', 969082170, 'au')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (3.8ms)[0m BEGIN
[1m[36mSQL (5.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082170, 'aae53fdb824d0713a1e91f252b9795a7')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36m (5.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.8ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:03', 969081891, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081891 ORDER BY id ASC
[1m[36m (3.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081891, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (6.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081891 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (3.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:03', NULL, 969081891, 'test_bd', 'successful', '2015-02-11 16:08:03')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (3.3ms)[0m BEGIN
[1m[36mSQL (3.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:03' WHERE `dispatched_services`.`id` = 2072[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mDispatchedService Load (3.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081891[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (4.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21cf564c1fbe29a07de6ee404549aed7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (4.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:04', '9789810743734')
[1m[36mSQL (5.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:04', 'format', 'journal', 969082171, 'journal')[0m
[1m[35mSQL (4.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:04', 'isbn', 1, '9789810743734', 969082171, '9789810743734')
[1m[36m (21.9ms)[0m [1mCOMMIT[0m
[1m[35m (5.1ms)[0m BEGIN
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082171, '21cf564c1fbe29a07de6ee404549aed7')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.7ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081892
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892
[1m[36m (4.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:04', NULL, 969081892, 'test_bd', 'queued', '2015-02-11 16:08:04')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (5.0ms)[0m BEGIN
[1m[36mSQL (4.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:04' WHERE `dispatched_services`.`id` = 2073[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mRequest Load (5.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081892 LIMIT 1[0m
[1m[35mReferent Load (4.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082171)
[1m[36mReferentValue Load (5.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082171)[0m
[1m[35mServiceResponse Load (5.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081892) ORDER BY id ASC
[1m[36mDispatchedService Load (5.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081892)[0m
[1m[35mDispatchedService Load (6.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081892 AND `dispatched_services`.`id` = 2073 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (5.5ms)[0m BEGIN
[1m[36mSQL (5.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081892, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (24.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (5.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (5.4ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.034757s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 16:08:04' WHERE `dispatched_services`.`id` = 2073[0m
[1m[35m (25.1ms)[0m COMMIT
[1m[36mRequest Load (4.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081892 LIMIT 1[0m
[1m[35mDispatchedService Load (5.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892
[1m[36mDispatchedService Load (5.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (7.7ms)
[1m[35mReferent Load (5.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082171 LIMIT 1
[1m[36mReferentValue Load (4.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082171)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (17.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (5.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081892 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (11.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (6.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081892 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (8.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (11.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (114.7ms)
[1m[35mPermalink Load (5.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082171
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (19.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081892
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 901ms (Views: 264.2ms | ActiveRecord: 236.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 11:08:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (5.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '076d103add42b4c6e4a8a2587991c4ca' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (4.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:04', 'some book')
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:04', 'format', 'book', 969082172, 'book')[0m
[1m[35mSQL (5.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:04', 'genre', 1, 'book', 969082172, 'book')
[1m[36mSQL (3.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'author', 1, 'smith', 969082172, 'Smith')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'title', 1, 'some book', 969082172, 'Some Book')
[1m[36m (24.8ms)[0m [1mCOMMIT[0m
[1m[35m (2.2ms)[0m BEGIN
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 16:08:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082172, '076d103add42b4c6e4a8a2587991c4ca')[0m
[1m[35m (22.6ms)[0m COMMIT
[1m[36m (5.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081893
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893
[1m[36m (5.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.8ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:05', NULL, 969081893, 'BorrowDirect', 'queued', '2015-02-11 16:08:05')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.7ms)[0m BEGIN
[1m[36mSQL (2.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2074[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mRequest Load (4.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081893 LIMIT 1[0m
[1m[35mReferent Load (3.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082172)
[1m[36mReferentValue Load (3.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082172)[0m
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081893) ORDER BY id ASC
[1m[36mDispatchedService Load (3.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081893)[0m
[1m[35mDispatchedService Load (4.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081893 AND `dispatched_services`.`id` = 2074 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (4.0ms)[0m BEGIN
[1m[36mSQL (3.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081893, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36mDispatchedService Load (4.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (3.6ms)[0m BEGIN
[1m[36mSQL (4.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2074[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mRequest Load (3.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081893 LIMIT 1[0m
[1m[35mDispatchedService Load (4.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (5.4ms)
[1m[36mDispatchedService Load (3.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893[0m
[1m[35mReferent Load (4.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082172 LIMIT 1
[1m[36mReferentValue Load (4.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082172)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (22.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (5.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081893 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (5.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081893 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (4.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082172
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (13.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (4.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081893
[1m[36m (26.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 460ms (Views: 23.0ms | ActiveRecord: 258.4ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 11:08:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (5.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d6fd588539f5e7b7b2abcc52ce2475e' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (5.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:05', 'foo')
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'format', 'journal', 969082173, 'journal')[0m
[1m[35mSQL (5.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'genre', 1, 'article', 969082173, 'article')
[1m[36mSQL (5.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'title', 1, 'foo', 969082173, 'foo')[0m
[1m[35mSQL (5.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'author', 1, 'bar', 969082173, 'bar')
[1m[36m (32.5ms)[0m [1mCOMMIT[0m
[1m[35m (5.1ms)[0m BEGIN
[1m[36mSQL (5.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 16:08:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082173, '9d6fd588539f5e7b7b2abcc52ce2475e')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081894
[1m[36m (23.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894
[1m[36m (5.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:05', NULL, 969081894, 'BorrowDirect', 'queued', '2015-02-11 16:08:05')
[1m[36m (22.9ms)[0m [1mCOMMIT[0m
[1m[35m (4.9ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2075[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mRequest Load (5.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081894 LIMIT 1[0m
[1m[35mReferent Load (5.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082173)
[1m[36mReferentValue Load (5.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082173)[0m
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081894) ORDER BY id ASC
[1m[36mDispatchedService Load (5.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081894)[0m
[1m[35mDispatchedService Load (6.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081894 AND `dispatched_services`.`id` = 2075 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (5.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (5.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2075
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (5.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081894 LIMIT 1
[1m[36mDispatchedService Load (5.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (6.8ms)
[1m[35mDispatchedService Load (5.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894
[1m[36mReferent Load (5.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082173 LIMIT 1[0m
[1m[35mReferentValue Load (5.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082173)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (17.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (5.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081894 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (5.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081894 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (6.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082173[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (5.0ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081894[0m
[1m[35m (18.1ms)[0m COMMIT
Completed 200 OK in 428ms (Views: 20.3ms | ActiveRecord: 272.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (6.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cec5716750db3a0f3cb42e4c905480c8' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (5.0ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:05', 'foo')[0m
[1m[35mSQL (5.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'format', 'book', 969082174, 'book')
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'genre', 1, 'book', 969082174, 'book')[0m
[1m[35mSQL (5.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:05', 'title', 1, 'foo', 969082174, 'foo')
[1m[36m (22.9ms)[0m [1mCOMMIT[0m
[1m[35m (4.8ms)[0m BEGIN
[1m[36mSQL (6.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 16:08:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082174, 'cec5716750db3a0f3cb42e4c905480c8')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mDispatchedService Load (5.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081895 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (5.3ms)[0m BEGIN
[1m[36mSQL (5.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:05', NULL, 969081895, 'BorrowDirect', 'failed_fatal', '2015-02-11 16:08:05')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (5.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:05' WHERE `dispatched_services`.`id` = 2076
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081895" for 127.0.0.1 at 2015-02-11 11:08:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081895"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081895 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082174 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082174)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081895
[1m[36m (37.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (4.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081895
[1m[36mRequest Load (5.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081895 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081895 [["request_id", 969081895]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (6.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082174 LIMIT 1[0m
[1m[35mReferentValue Load (5.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082174)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (24.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (6.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081895 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (5.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081895 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (5.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082174[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (4.9ms)[0m BEGIN
[1m[36mSQL (5.8ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081895[0m
[1m[35m (18.8ms)[0m COMMIT
Completed 200 OK in 149ms (Views: 27.4ms | ActiveRecord: 112.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (6.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a282bfb0e8ae8331ca993af220fc2046' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (5.0ms)[0m BEGIN
[1m[36mSQL (5.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:06', '9789810743734')[0m
[1m[35mSQL (5.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:06', 'format', 'journal', 969082175, 'journal')
[1m[36mSQL (6.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:06', 'isbn', 1, '9789810743734', 969082175, '9789810743734')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (5.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082175, 'a282bfb0e8ae8331ca993af220fc2046')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (4.9ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081896[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mDispatchedService Load (5.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896[0m
[1m[35m (5.0ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:06', NULL, 969081896, 'BorrowDirect', 'queued', '2015-02-11 16:08:06')[0m
[1m[35m (21.9ms)[0m COMMIT
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:06' WHERE `dispatched_services`.`id` = 2077
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (5.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1
[1m[36mReferent Load (5.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082175)[0m
[1m[35mReferentValue Load (5.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175)
[1m[36mServiceResponse Load (5.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081896) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (5.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081896)
[1m[36mDispatchedService Load (5.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`id` = 2077 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081896, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (3.9ms)[0m BEGIN
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:06', 'Choose your delivery location', 969081896, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (4.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (3.9ms)[0m BEGIN
[1m[36mSQL (4.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:06' WHERE `dispatched_services`.`id` = 2077[0m
[1m[35m (24.9ms)[0m COMMIT
[1m[36mRequest Load (3.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1[0m
[1m[35mDispatchedService Load (3.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (4.5ms)
[1m[36mDispatchedService Load (3.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896[0m
[1m[35mReferent Load (3.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082175 LIMIT 1
[1m[36mReferentValue Load (4.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (16.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081896 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (4.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (8.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (17.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (18.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (5.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (4.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082175[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (4.3ms)[0m BEGIN
[1m[36mSQL (4.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081896[0m
[1m[35m (18.6ms)[0m COMMIT
Completed 200 OK in 526ms (Views: 37.3ms | ActiveRecord: 232.7ms)
Started GET "/borrow_direct/BorrowDirect/969081896?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 11:08:06 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081896"}
[1m[36mRequest Load (4.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081896 ORDER BY id ASC
[1m[36mDispatchedService Load (5.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (4.2ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 16:08:06' WHERE `dispatched_services`.`id` = 2077[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:06', 969081896, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082175 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081896&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 65ms (ActiveRecord: 55.2ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 16:08:06' WHERE `dispatched_services`.`id` = 2077
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (2.2ms)[0m BEGIN
[1m[36mSQL (2.9ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012855[0m
[1m[35m (16.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081896&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081896", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (3.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1[0m
[1m[35mReferent Load (4.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082175 LIMIT 1
[1m[36mReferentValue Load (4.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175)[0m
[1m[35m (4.5ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081896[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (5.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896[0m
[1m[35mRequest Load (4.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081896 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896[0m [["request_id", 969081896]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (5.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082175 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082175)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (12.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081896 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081896 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082175
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081896
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 112ms (Views: 25.7ms | ActiveRecord: 76.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 11:08:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8df3522b06157650a203759577ac53ee' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:07', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'format', 'journal', 969082176, 'journal')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'isbn', 1, '0109836413', 969082176, '0109836413')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 16:08:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082176, '8df3522b06157650a203759577ac53ee')[0m
[1m[35m (49.6ms)[0m COMMIT
[1m[36m (3.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081897
[1m[36m (62.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:07', NULL, 969081897, 'BorrowDirect', 'queued', '2015-02-11 16:08:07')
[1m[36m (40.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2078[0m
[1m[35m (61.9ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081897 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082176)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082176)[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081897) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081897)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (23.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081897 AND `dispatched_services`.`id` = 2078 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081897, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:07', 'This item is not currently available from BorrowDirect', 969081897, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2078
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081897 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082176 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082176)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081897 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081897 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082176[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081897[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 432ms (Views: 19.8ms | ActiveRecord: 276.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f40daf5e7b0826879e67f4630d47591' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:07', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'format', 'journal', 969082177, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'isbn', 1, '9789810743734', 969082177, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082177, '5f40daf5e7b0826879e67f4630d47591')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081898[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:07', NULL, 969081898, 'BorrowDirect', 'queued', '2015-02-11 16:08:07')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2079
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082177)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081898) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081898)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`id` = 2079 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081898, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:07', 'Choose your delivery location', 969081898, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2079[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082177 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081898 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082177[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081898[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 284ms (Views: 22.1ms | ActiveRecord: 109.3ms)
Started GET "/borrow_direct/BorrowDirect/969081898?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 11:08:07 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081898"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081898 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2079[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:07', 969081898, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082177 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081898&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.0ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:07' WHERE `dispatched_services`.`id` = 2079
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012860[0m
[1m[35m (14.4ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081898&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081898", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082177 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081898[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081898 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898[0m [["request_id", 969081898]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082177 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082177)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081898 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081898 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082177
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081898
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 72ms (Views: 18.5ms | ActiveRecord: 43.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a2abcade34b0df0960ef9571967f0a61' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:07', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'format', 'journal', 969082178, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:07', 'isbn', 1, '9789810743734', 969082178, '9789810743734')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082178, 'a2abcade34b0df0960ef9571967f0a61')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081899
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:08', NULL, 969081899, 'BorrowDirect', 'queued', '2015-02-11 16:08:08')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2080[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081899 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082178)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082178)[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081899) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081899)[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081899 AND `dispatched_services`.`id` = 2080 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081899, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 'Choose your delivery location', 969081899, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2080
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081899 LIMIT 1
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.6ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899
[1m[36mReferent Load (2.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082178 LIMIT 1[0m
[1m[35mReferentValue Load (1.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082178)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081899 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081899 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081899 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082178
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081899
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 263ms (Views: 24.6ms | ActiveRecord: 114.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '169218ee0636f57d067d2cbd0684d8f5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:08', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'format', 'journal', 969082179, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'isbn', 1, '9789810743734', 969082179, '9789810743734')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082179, '169218ee0636f57d067d2cbd0684d8f5')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081900
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:08', NULL, 969081900, 'BorrowDirect', 'queued', '2015-02-11 16:08:08')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2081[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082179)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179)[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081900) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081900)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`id` = 2081 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081900, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 'Choose your delivery location', 969081900, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2081
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082179 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081900 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082179
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081900
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 303ms (Views: 21.7ms | ActiveRecord: 118.9ms)
Started GET "/borrow_direct/BorrowDirect/969081900" for 127.0.0.1 at 2015-02-11 11:08:08 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081900"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081900 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081900, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082179 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081900&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 23.8ms)
Started GET "/resolve?umlaut.request_id=969081900&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081900", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082179 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081900[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900[0m [["request_id", 969081900]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082179 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082179)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081900 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081900 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081900 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082179[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081900[0m
[1m[35m (13.9ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 22.6ms | ActiveRecord: 42.3ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7bd94c08cf535fbd23c5d16d2c209e9e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:08', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'format', 'journal', 969082180, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'title', 1, 'title', 969082180, 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'author', 1, 'au', 969082180, 'au')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082180, '7bd94c08cf535fbd23c5d16d2c209e9e')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081901, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081901, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081901 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:08', NULL, 969081901, 'test_bd', 'successful', '2015-02-11 16:08:08')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:08' WHERE `dispatched_services`.`id` = 2082
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081901
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081901 ORDER BY id ASC[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.0ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b62f1c4a479a45771502231c0f0d7519' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:08', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'format', 'journal', 969082181, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'isbn', 1, '121212', 969082181, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082181, 'b62f1c4a479a45771502231c0f0d7519')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081902"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081902 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081902 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969081902
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081902, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081902\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082181 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082181)
Redirected to http://test.host/resolve?umlaut.request_id=969081902&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 28ms (ActiveRecord: 21.1ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a93624be567ae3d2299715606e59b9e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:08', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'format', 'journal', 969082182, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:08', 'isbn', 1, '121212', 969082182, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082182, '1a93624be567ae3d2299715606e59b9e')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081903, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081903"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081903 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081903 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012869
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:08', 969081903, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012869\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082182 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082182)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081903&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 28ms (ActiveRecord: 21.7ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c51af764a66d8f33a87d50f83dee5e66' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:08', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082183, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '121212', 969082183, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082183, 'c51af764a66d8f33a87d50f83dee5e66')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:09', 969081904, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081904"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081904 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081904 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081904, 'BorrowDirect', 'in_progress', '2015-02-11 16:08:09')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2083[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:09', 969081904, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082183 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082183)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081904&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 65ms (ActiveRecord: 54.7ms)
[1m[35mDispatchedService Load (2.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081904
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081904 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2083
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.9ms)[0m BEGIN
[1m[36mSQL (3.7ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012872[0m
[1m[35m (17.7ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (5.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c53c200474125a0dd6df47a338f432d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (5.0ms)[0m BEGIN
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:09', '121212')[0m
[1m[35mSQL (4.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082184, 'journal')
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '121212', 969082184, '121212')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (3.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082184, '0c53c200474125a0dd6df47a338f432d')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081905"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081905 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081905 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:09', 969081905, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082184 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082184)
Redirected to http://test.host/resolve?umlaut.request_id=969081905&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.2ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fdb0fcea04b33580e0d167c133362e6a' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:09', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082185, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082185, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'aulast', 1, 'grimes', 969082185, 'Grimes')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082185, 'fdb0fcea04b33580e0d167c133362e6a')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081906, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081906 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2c37bf17b90a17c69ed0ee80f733256' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 16:08:09', 'biological foundations of language', '1967')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'book', 969082186, 'book')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'auinit', 1, 'eh', 969082186, 'EH')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'aulast', 1, 'lenneberg', 969082186, 'Lenneberg')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'title', 1, 'biological foundations of language', 969082186, 'Biological foundations of language')[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'genre', 1, 'book', 969082186, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'date', 1, '1967', 969082186, '1967')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082186, 'info:sid/google', 'b2c37bf17b90a17c69ed0ee80f733256')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081907 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081907, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081907 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081907, 'test_bd', 'successful', '2015-02-11 16:08:09')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2084[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081907[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '762d776a4aeff9f94551007dd70c2ad7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 16:08:09', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082187, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'auinit', 1, 'rd', 969082187, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'aulast', 1, 'kaplan', 969082187, 'Kaplan')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'atitle', 1, 'the coming anarchy', 969082187, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'title', 1, 'the atlantic monthly', 969082187, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'volume', 1, '273', 969082187, '273')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'issue', 1, '2', 969082187, '2')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'date', 1, '1994', 969082187, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'spage', 1, '44', 969082187, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'issn', 1, '1072-7825', 969082187, '1072-7825')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082187, 'info:sid/google', '762d776a4aeff9f94551007dd70c2ad7')[0m
[1m[35m (22.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081908 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081908, 'test_bd', 'successful', '2015-02-11 16:08:09')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2085
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081908
[1m[36mServiceResponse Exists (1.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081908 LIMIT 1[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '994886e237c689339f1d21979df8af3e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:09', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082188, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '9789810743734', 969082188, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082188, '994886e237c689339f1d21979df8af3e')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081909 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081909, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081909 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081909, 'test_bd', 'successful', '2015-02-11 16:08:09')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2086
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081909
[1m[36m (0.8ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db2899bd3449e2e78f27b5544bf0b606' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:09', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082189, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '9789810743734', 969082189, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082189, 'db2899bd3449e2e78f27b5544bf0b606')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081910 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081910, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:09', 'Choose your delivery location', 969081910, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081910 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:09', NULL, 969081910, 'test_bd', 'successful', '2015-02-11 16:08:09')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:09' WHERE `dispatched_services`.`id` = 2087
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081910
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b0ee8d810ec0408e16962da925b65bf' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:09', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'format', 'journal', 969082190, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:09', 'isbn', 1, '0109836413', 969082190, '0109836413')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 16:08:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082190, '4b0ee8d810ec0408e16962da925b65bf')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081911 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081911, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35m (3.6ms)[0m BEGIN
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:10', 'This item is not currently available from BorrowDirect', 969081911, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mDispatchedService Load (5.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081911 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (4.9ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:10', NULL, 969081911, 'test_bd', 'successful', '2015-02-11 16:08:10')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:10' WHERE `dispatched_services`.`id` = 2088
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081911
[1m[36mRequest Load (5.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d3712ff41e8771563e2f04c3694b62e' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (4.4ms)[0m BEGIN
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:10', '000000000')[0m
[1m[35mSQL (5.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:10', 'format', 'journal', 969082191, 'journal')
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:10', 'isbn', 1, '000000000', 969082191, '000000000')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 16:08:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082191, '8d3712ff41e8771563e2f04c3694b62e')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081912 ORDER BY id ASC
[1m[36m (4.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081912, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (5.8ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:10', 'This item is not currently available from BorrowDirect', 969081912, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36mDispatchedService Load (5.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081912 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (5.0ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:10', NULL, 969081912, 'test_bd', 'successful', '2015-02-11 16:08:10')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (5.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:10' WHERE `dispatched_services`.`id` = 2089
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081912
[1m[36mRequest Load (5.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dff88c75957265186fa1f3234a285860' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (5.7ms)[0m BEGIN
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:10', '9789810743734')[0m
[1m[35mSQL (5.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:10', 'format', 'journal', 969082192, 'journal')
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:10', 'isbn', 1, '9789810743734', 969082192, '9789810743734')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (4.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082192, 'dff88c75957265186fa1f3234a285860')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081913 ORDER BY id ASC
[1m[36m (4.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081913, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (3.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081913 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (2.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:10', NULL, 969081913, 'test_bd', 'failed_temporary', '2015-02-11 16:08:10')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (4.4ms)[0m BEGIN
[1m[36mSQL (5.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 16:08:10' WHERE `dispatched_services`.`id` = 2090[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mDispatchedService Load (5.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081913[0m
[1m[36mActiveRecord::SchemaMigration Load (5.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 49ms (Views: 39.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (5.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 51ms (Views: 0.4ms | ActiveRecord: 22.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (5.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb0cc9cef4bcd15f0a51ea5f6853951f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (5.1ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:23', '121212')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082193, 'journal')
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'isbn', 1, '121212', 969082193, '121212')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (2.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082193, 'fb0cc9cef4bcd15f0a51ea5f6853951f')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081914"}
[1m[35mRequest Load (4.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081914 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081914 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969081914
[1m[35m (4.5ms)[0m BEGIN
[1m[36mSQL (5.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081914, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081914\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mReferent Load (5.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082193 LIMIT 1[0m
[1m[35mReferentValue Load (5.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082193)
Redirected to http://test.host/resolve?umlaut.request_id=969081914&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 124ms (ActiveRecord: 67.8ms)
[1m[36mRequest Load (5.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e4063402fc3943665dfbda86d6bb0ddb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (4.6ms)[0m BEGIN
[1m[36mSQL (5.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:23', '121212')[0m
[1m[35mSQL (5.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082194, 'journal')
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'isbn', 1, '121212', 969082194, '121212')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (4.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082194, 'e4063402fc3943665dfbda86d6bb0ddb')
[1m[36m (22.4ms)[0m [1mCOMMIT[0m
[1m[35m (4.8ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081915, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (19.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081915"}
[1m[36mRequest Load (5.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081915 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081915 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012885
[1m[36m (4.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081915, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012885\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (21.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (4.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082194 LIMIT 1
[1m[36mReferentValue Load (4.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082194)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081915&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 58ms (ActiveRecord: 51.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (5.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca0a444044961c0a25caf8244783816c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (4.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:23', '121212')
[1m[36mSQL (5.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082195, 'journal')[0m
[1m[35mSQL (5.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'isbn', 1, '121212', 969082195, '121212')
[1m[36m (23.5ms)[0m [1mCOMMIT[0m
[1m[35m (5.4ms)[0m BEGIN
[1m[36mSQL (6.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082195, 'ca0a444044961c0a25caf8244783816c')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (5.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.6ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081916, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081916"}
[1m[35mRequest Load (5.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081916 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081916 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (5.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081916 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (5.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:23', NULL, 969081916, 'BorrowDirect', 'in_progress', '2015-02-11 16:08:23')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (5.4ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:23' WHERE `dispatched_services`.`id` = 2091[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36m (4.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.6ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081916, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (4.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082195 LIMIT 1
[1m[36mReferentValue Load (5.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082195)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081916&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 154ms (ActiveRecord: 133.3ms)
[1m[35mDispatchedService Load (10.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081916
[1m[36mServiceResponse Load (5.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081916 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (5.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081916 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (5.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 16:08:23' WHERE `dispatched_services`.`id` = 2091
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (5.0ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012888[0m
[1m[35m (18.8ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (5.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '741d2da25291cd8ea70bcfb359162997' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (5.1ms)[0m BEGIN
[1m[36mSQL (5.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:23', '121212')[0m
[1m[35mSQL (5.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082196, 'journal')
[1m[36mSQL (5.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'isbn', 1, '121212', 969082196, '121212')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (4.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 16:08:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082196, '741d2da25291cd8ea70bcfb359162997')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081917"}
[1m[35mRequest Load (5.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081917 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081917 ORDER BY id ASC[0m
[1m[35m (5.8ms)[0m BEGIN
[1m[36mSQL (5.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:23', 969081917, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mReferent Load (5.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082196 LIMIT 1[0m
[1m[35mReferentValue Load (5.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082196)
Redirected to http://test.host/resolve?umlaut.request_id=969081917&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 80ms (ActiveRecord: 71.7ms)
[1m[36mRequest Load (6.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c3bda0fc6d2b466d73703b6575a218c' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (5.6ms)[0m BEGIN
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:23', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (5.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:23', 'format', 'journal', 969082197, 'journal')
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082197, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'aulast', 1, 'grimes', 969082197, 'Grimes')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 16:08:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082197, '6c3bda0fc6d2b466d73703b6575a218c')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (3.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081918, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials+of+the+new+agriculture+by+henry+jackson+waters%22+and+au%3D%22Grimes%22')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081918 ORDER BY id ASC
[1m[36mRequest Load (3.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '91019bf2d9f70735a6f1bfdf963a2891' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (3.1ms)[0m BEGIN
[1m[36mSQL (3.6ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 16:08:24', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (3.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'format', 'journal', 969082198, 'journal')
[1m[36mSQL (4.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'auinit', 1, 'rd', 969082198, 'RD')[0m
[1m[35mSQL (3.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'aulast', 1, 'kaplan', 969082198, 'Kaplan')
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'atitle', 1, 'the coming anarchy', 969082198, 'The coming anarchy')[0m
[1m[35mSQL (4.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'title', 1, 'the atlantic monthly', 969082198, 'The Atlantic monthly')
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'volume', 1, '273', 969082198, '273')[0m
[1m[35mSQL (5.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'issue', 1, '2', 969082198, '2')
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'date', 1, '1994', 969082198, '1994')[0m
[1m[35mSQL (4.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'spage', 1, '44', 969082198, '44')
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'issn', 1, '1072-7825', 969082198, '1072-7825')[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36m (4.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 16:08:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082198, 'info:sid/google', '91019bf2d9f70735a6f1bfdf963a2891')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081919 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:24', NULL, 969081919, 'test_bd', 'successful', '2015-02-11 16:08:24')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (4.7ms)[0m BEGIN
[1m[36mSQL (38.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:24' WHERE `dispatched_services`.`id` = 2092[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (5.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081919[0m
[1m[35mServiceResponse Exists (5.4ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081919 LIMIT 1
[1m[36mRequest Load (5.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd932808a56079c9afb9556201d47c9a3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (4.7ms)[0m BEGIN
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 16:08:24', 'biological foundations of language', '1967')[0m
[1m[35mSQL (5.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'format', 'book', 969082199, 'book')
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'auinit', 1, 'eh', 969082199, 'EH')[0m
[1m[35mSQL (4.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'aulast', 1, 'lenneberg', 969082199, 'Lenneberg')
[1m[36mSQL (5.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'title', 1, 'biological foundations of language', 969082199, 'Biological foundations of language')[0m
[1m[35mSQL (4.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'genre', 1, 'book', 969082199, 'book')
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'date', 1, '1967', 969082199, '1967')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (4.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 16:08:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082199, 'info:sid/google', 'd932808a56079c9afb9556201d47c9a3')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081920 ORDER BY id ASC
[1m[36m (4.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081920, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081920 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (5.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.7ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:24', NULL, 969081920, 'test_bd', 'successful', '2015-02-11 16:08:24')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (4.7ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:24' WHERE `dispatched_services`.`id` = 2093[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mDispatchedService Load (5.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081920[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (5.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eeaa6fdc2010b3df5a3afd9f995267ac' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (4.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.7ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:24', '9789810743734')
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'format', 'journal', 969082200, 'journal')[0m
[1m[35mSQL (4.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:24', 'isbn', 1, '9789810743734', 969082200, '9789810743734')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (5.3ms)[0m BEGIN
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082200, 'eeaa6fdc2010b3df5a3afd9f995267ac')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (4.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081921
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921
[1m[36m (4.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:24', NULL, 969081921, 'test_bd', 'queued', '2015-02-11 16:08:24')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (5.4ms)[0m BEGIN
[1m[36mSQL (6.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:24' WHERE `dispatched_services`.`id` = 2094[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mRequest Load (5.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081921 LIMIT 1[0m
[1m[35mReferent Load (6.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082200)
[1m[36mReferentValue Load (5.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082200)[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081921) ORDER BY id ASC
[1m[36mDispatchedService Load (5.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081921)[0m
[1m[35mDispatchedService Load (6.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081921 AND `dispatched_services`.`id` = 2094 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (5.6ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081921, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (5.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (5.6ms)[0m BEGIN
[1m[36mSQL (6.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.036133s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 16:08:24' WHERE `dispatched_services`.`id` = 2094[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mRequest Load (5.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081921 LIMIT 1[0m
[1m[35mDispatchedService Load (6.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921
[1m[36mDispatchedService Load (5.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (8.0ms)
[1m[35mReferent Load (5.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082200 LIMIT 1
[1m[36mReferentValue Load (5.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082200)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (24.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (5.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081921 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (5.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081921 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.6ms)
[1m[35mPermalink Load (5.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082200
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (53.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (4.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081921
[1m[36m (23.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 643ms (Views: 142.6ms | ActiveRecord: 245.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 11:08:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (5.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a33a43134b0488c7c40a0a6ca26e81e9' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (4.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.5ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:25', 'some book')
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'format', 'book', 969082201, 'book')[0m
[1m[35mSQL (5.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'genre', 1, 'book', 969082201, 'book')
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'author', 1, 'smith', 969082201, 'Smith')[0m
[1m[35mSQL (5.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'title', 1, 'some book', 969082201, 'Some Book')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (5.1ms)[0m BEGIN
[1m[36mSQL (5.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 16:08:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082201, 'a33a43134b0488c7c40a0a6ca26e81e9')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081922
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922
[1m[36m (2.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:25', NULL, 969081922, 'BorrowDirect', 'queued', '2015-02-11 16:08:25')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:25' WHERE `dispatched_services`.`id` = 2095[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081922 LIMIT 1[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082201)
[1m[36mReferentValue Load (1.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082201)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081922) ORDER BY id ASC
[1m[36mDispatchedService Load (2.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081922)[0m
[1m[35mDispatchedService Load (2.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081922 AND `dispatched_services`.`id` = 2095 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (4.8ms)[0m BEGIN
[1m[36mSQL (5.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081922, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (5.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (4.7ms)[0m BEGIN
[1m[36mSQL (5.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:25' WHERE `dispatched_services`.`id` = 2095[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mRequest Load (5.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081922 LIMIT 1[0m
[1m[35mDispatchedService Load (5.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (6.6ms)
[1m[36mDispatchedService Load (5.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922[0m
[1m[35mReferent Load (5.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082201 LIMIT 1
[1m[36mReferentValue Load (5.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082201)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (22.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081922 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (5.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081922 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (5.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082201
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (14.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (5.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081922
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 429ms (Views: 27.5ms | ActiveRecord: 230.2ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 11:08:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (5.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '70a8dd4f5b7f19d7e2eb0c7b9824dceb' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (5.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:25', 'foo')
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'format', 'journal', 969082202, 'journal')[0m
[1m[35mSQL (3.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'genre', 1, 'article', 969082202, 'article')
[1m[36mSQL (3.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'title', 1, 'foo', 969082202, 'foo')[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:25', 'author', 1, 'bar', 969082202, 'bar')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (4.1ms)[0m BEGIN
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 16:08:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082202, '70a8dd4f5b7f19d7e2eb0c7b9824dceb')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (4.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081923
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (4.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923
[1m[36m (3.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:25', NULL, 969081923, 'BorrowDirect', 'queued', '2015-02-11 16:08:25')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (4.5ms)[0m BEGIN
[1m[36mSQL (4.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:25' WHERE `dispatched_services`.`id` = 2096[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mRequest Load (5.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081923 LIMIT 1[0m
[1m[35mReferent Load (4.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082202)
[1m[36mReferentValue Load (5.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082202)[0m
[1m[35mServiceResponse Load (5.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081923) ORDER BY id ASC
[1m[36mDispatchedService Load (4.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081923)[0m
[1m[35mDispatchedService Load (5.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081923 AND `dispatched_services`.`id` = 2096 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (5.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (4.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:25' WHERE `dispatched_services`.`id` = 2096
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (5.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081923 LIMIT 1
[1m[36mDispatchedService Load (4.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (5.8ms)
[1m[35mDispatchedService Load (4.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923
[1m[36mReferent Load (4.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082202 LIMIT 1[0m
[1m[35mReferentValue Load (4.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082202)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (23.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (5.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081923 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (5.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081923 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (5.6ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082202[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (4.7ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081923[0m
[1m[35m (18.8ms)[0m COMMIT
Completed 200 OK in 379ms (Views: 27.6ms | ActiveRecord: 225.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (5.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9806dbaa0f94b6f7ab4af6e833bd6acf' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (4.6ms)[0m BEGIN
[1m[36mSQL (5.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:26', 'foo')[0m
[1m[35mSQL (5.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'format', 'book', 969082203, 'book')
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'genre', 1, 'book', 969082203, 'book')[0m
[1m[35mSQL (5.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'title', 1, 'foo', 969082203, 'foo')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (4.6ms)[0m BEGIN
[1m[36mSQL (5.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 16:08:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082203, '9806dbaa0f94b6f7ab4af6e833bd6acf')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mDispatchedService Load (5.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081924 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (5.1ms)[0m BEGIN
[1m[36mSQL (5.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:26', NULL, 969081924, 'BorrowDirect', 'failed_fatal', '2015-02-11 16:08:26')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (4.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2097
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081924" for 127.0.0.1 at 2015-02-11 11:08:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081924"}
[1m[35mRequest Load (5.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081924 LIMIT 1
[1m[36mReferent Load (4.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082203 LIMIT 1[0m
[1m[35mReferentValue Load (5.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082203)
[1m[36m (4.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081924
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (5.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081924
[1m[36mRequest Load (5.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081924 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081924 [["request_id", 969081924]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (4.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082203 LIMIT 1[0m
[1m[35mReferentValue Load (4.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082203)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (11.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (5.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081924 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (5.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081924 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (5.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082203[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (4.5ms)[0m BEGIN
[1m[36mSQL (4.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081924[0m
[1m[35m (18.2ms)[0m COMMIT
Completed 200 OK in 134ms (Views: 16.5ms | ActiveRecord: 108.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (5.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98914fa5eaeb928a4d3ffa15d9831cee' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (4.5ms)[0m BEGIN
[1m[36mSQL (5.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:26', '9789810743734')[0m
[1m[35mSQL (4.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'format', 'journal', 969082204, 'journal')
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:26', 'isbn', 1, '9789810743734', 969082204, '9789810743734')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (5.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082204, '98914fa5eaeb928a4d3ffa15d9831cee')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (5.2ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081925[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mDispatchedService Load (5.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925[0m
[1m[35m (5.2ms)[0m BEGIN
[1m[36mSQL (5.7ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:26', NULL, 969081925, 'BorrowDirect', 'queued', '2015-02-11 16:08:26')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (5.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2098
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (5.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1
[1m[36mReferent Load (4.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082204)[0m
[1m[35mReferentValue Load (5.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204)
[1m[36mServiceResponse Load (5.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081925) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (4.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081925)
[1m[36mDispatchedService Load (5.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`id` = 2098 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (4.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081925, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (4.5ms)[0m BEGIN
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:26', 'Choose your delivery location', 969081925, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mDispatchedService Load (5.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (3.9ms)[0m BEGIN
[1m[36mSQL (4.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2098[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (4.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1[0m
[1m[35mDispatchedService Load (5.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (5.8ms)
[1m[36mDispatchedService Load (4.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925[0m
[1m[35mReferent Load (4.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082204 LIMIT 1
[1m[36mReferentValue Load (4.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (19.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081925 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (5.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (12.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (13.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (5.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (5.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082204[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (5.0ms)[0m BEGIN
[1m[36mSQL (5.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081925[0m
[1m[35m (17.8ms)[0m COMMIT
Completed 200 OK in 470ms (Views: 31.8ms | ActiveRecord: 233.8ms)
Started GET "/borrow_direct/BorrowDirect/969081925?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 11:08:26 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081925"}
[1m[36mRequest Load (5.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081925 ORDER BY id ASC
[1m[36mDispatchedService Load (5.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (4.4ms)[0m BEGIN
[1m[36mSQL (4.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2098[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:26', 969081925, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082204 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081925&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
Completed 303 See Other in 74ms (ActiveRecord: 58.6ms)
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 16:08:26' WHERE `dispatched_services`.`id` = 2098
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (3.0ms)[0m BEGIN
[1m[36mSQL (3.5ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012896[0m
[1m[35m (17.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081925&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081925", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:26-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (3.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1[0m
[1m[35mReferent Load (3.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082204 LIMIT 1
[1m[36mReferentValue Load (3.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204)[0m
[1m[35m (3.9ms)[0m BEGIN
[1m[36mSQL (4.8ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081925[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (4.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925[0m
[1m[35mRequest Load (4.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081925 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925[0m [["request_id", 969081925]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (4.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082204 LIMIT 1
[1m[36mReferentValue Load (4.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082204)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (11.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081925 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (5.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081925 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (4.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082204
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (4.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081925
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 130ms (Views: 19.8ms | ActiveRecord: 100.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 11:08:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a7e624bad8c95427cf1cf3c06e7a54a5' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:27', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:27', 'format', 'journal', 969082205, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:27', 'isbn', 1, '0109836413', 969082205, '0109836413')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 16:08:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082205, 'a7e624bad8c95427cf1cf3c06e7a54a5')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081926
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:27', NULL, 969081926, 'BorrowDirect', 'queued', '2015-02-11 16:08:27')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2099[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081926 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082205)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082205)[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081926) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081926)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081926 AND `dispatched_services`.`id` = 2099 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081926, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:27', 'This item is not currently available from BorrowDirect', 969081926, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2099
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081926 LIMIT 1
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082205 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082205)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081926 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081926 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082205[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081926[0m
[1m[35m (15.4ms)[0m COMMIT
Completed 200 OK in 244ms (Views: 20.4ms | ActiveRecord: 112.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f61e0d5d07781f1a43c1766602a56c5c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:27', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:27', 'format', 'journal', 969082206, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:27', 'isbn', 1, '9789810743734', 969082206, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082206, 'f61e0d5d07781f1a43c1766602a56c5c')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081927[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:27', NULL, 969081927, 'BorrowDirect', 'queued', '2015-02-11 16:08:27')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2100
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082206)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206)
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081927) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081927)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`id` = 2100 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081927, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:27', 'Choose your delivery location', 969081927, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2100[0m
[1m[35m (60.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082206 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081927 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082206[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (15.6ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081927[0m
[1m[35m (20.6ms)[0m COMMIT
Completed 200 OK in 309ms (Views: 21.5ms | ActiveRecord: 132.1ms)
Started GET "/borrow_direct/BorrowDirect/969081927?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 11:08:27 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081927"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081927 ORDER BY id ASC
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2100[0m
[1m[35m (27.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:27', 969081927, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (23.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082206 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081927&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 119ms (ActiveRecord: 61.7ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:27' WHERE `dispatched_services`.`id` = 2100
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012901[0m
[1m[35m (14.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081927&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081927", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082206 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081927[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081927 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927[0m [["request_id", 969081927]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082206 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082206)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081927 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081927 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082206
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081927
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 72ms (Views: 18.9ms | ActiveRecord: 43.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3990fb7d40783313c44dcfbdc0be6eaf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:28', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082207, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'isbn', 1, '9789810743734', 969082207, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082207, '3990fb7d40783313c44dcfbdc0be6eaf')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081928
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:28', NULL, 969081928, 'BorrowDirect', 'queued', '2015-02-11 16:08:28')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2101[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081928 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082207)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082207)[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081928) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081928)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081928 AND `dispatched_services`.`id` = 2101 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081928, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 'Choose your delivery location', 969081928, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2101
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081928 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082207 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082207)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081928 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081928 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081928 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082207
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081928
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 250ms (Views: 22.5ms | ActiveRecord: 114.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 11:08:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a023c30422c93a0f844c7cc6511f6b4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:28', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082208, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'isbn', 1, '9789810743734', 969082208, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082208, '1a023c30422c93a0f844c7cc6511f6b4')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081929
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:28', NULL, 969081929, 'BorrowDirect', 'queued', '2015-02-11 16:08:28')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2102[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082208)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208)[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081929) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081929)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`id` = 2102 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081929, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 'Choose your delivery location', 969081929, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2102
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082208 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081929 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.4ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082208
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081929
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 246ms (Views: 22.5ms | ActiveRecord: 111.5ms)
Started GET "/borrow_direct/BorrowDirect/969081929" for 127.0.0.1 at 2015-02-11 11:08:28 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081929"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081929 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 969081929, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082208 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081929&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.2ms)
Started GET "/resolve?umlaut.request_id=969081929&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T11%3A08%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 11:08:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081929", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T11:08:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082208 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081929[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929[0m [["request_id", 969081929]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082208 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082208)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081929 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081929 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081929 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082208[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081929[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 116ms (Views: 21.9ms | ActiveRecord: 42.4ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c528eab89e83d2d167bb941ac81fcf42' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:28', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082209, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'title', 1, 'title', 969082209, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'author', 1, 'au', 969082209, 'au')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082209, 'c528eab89e83d2d167bb941ac81fcf42')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 969081930, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081930 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081930 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:28', NULL, 969081930, 'test_bd', 'successful', '2015-02-11 16:08:28')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2103
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081930
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8601128ce5a19743a5bd4f4c2dcca7bb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:28', 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082210, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'title', 1, 'title', 969082210, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'author', 1, 'au', 969082210, 'au')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082210, '8601128ce5a19743a5bd4f4c2dcca7bb')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 969081931, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081931 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081931, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081931 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:28', NULL, 969081931, 'test_bd', 'successful', '2015-02-11 16:08:28')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:28' WHERE `dispatched_services`.`id` = 2104[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081931[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd2d44fd863dac467c53e0227095bbb2b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:28', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'format', 'journal', 969082211, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'title', 1, 'title', 969082211, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:28', 'author', 1, 'au', 969082211, 'au')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082211, 'd2d44fd863dac467c53e0227095bbb2b')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:28', 969081932, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081932 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081932, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081932 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081932, 'test_bd', 'successful', '2015-02-11 16:08:29')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2105
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081932
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '438970e64eb7a0375bbd773723530701' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '9789810743734')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082212, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '9789810743734', 969082212, '9789810743734')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082212, '438970e64eb7a0375bbd773723530701')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081933 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081933, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:29', 'Choose your delivery location', 969081933, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081933 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081933, 'test_bd', 'successful', '2015-02-11 16:08:29')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2106
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081933
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a148fc2c766b828667043b2522787d5' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '000000000')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082213, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '000000000', 969082213, '000000000')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082213, '0a148fc2c766b828667043b2522787d5')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081934 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081934, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:29', 'This item is not currently available from BorrowDirect', 969081934, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081934 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081934, 'test_bd', 'successful', '2015-02-11 16:08:29')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2107
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081934
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a049f87d21bc59f0f63238c220b05ef3' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082214, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '0109836413', 969082214, '0109836413')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082214, 'a049f87d21bc59f0f63238c220b05ef3')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081935 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081935, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:29', 'This item is not currently available from BorrowDirect', 969081935, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081935 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081935, 'test_bd', 'successful', '2015-02-11 16:08:29')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2108
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081935
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f9e8094e2139270f7ad27fc66833ba5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082215, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '9789810743734', 969082215, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082215, '9f9e8094e2139270f7ad27fc66833ba5')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081936 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081936, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081936 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081936, 'test_bd', 'failed_temporary', '2015-02-11 16:08:29')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (2.0ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2109[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (4.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081936[0m
[1m[35mRequest Load (4.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '523806ddd8c1528ededd4674835aa0be' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (3.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.9ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 16:08:29', 'title')
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082216, 'journal')[0m
[1m[35mSQL (4.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'title', 1, 'title', 969082216, 'title')
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'author', 1, 'au', 969082216, 'au')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (5.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082216, '523806ddd8c1528ededd4674835aa0be')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (4.9ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 16:08:29', 969081937, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081937, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081937 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081937, 'test_bd', 'successful', '2015-02-11 16:08:29')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2110[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081937[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081937 ORDER BY id ASC
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b50b1d90be95e510151b5d4f59369a8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 16:08:29', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'format', 'journal', 969082217, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 16:08:29', 'isbn', 1, '9789810743734', 969082217, '9789810743734')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 16:08:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082217, '9b50b1d90be95e510151b5d4f59369a8')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081938 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 16:08:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081938, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081938 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 16:08:29', NULL, 969081938, 'test_bd', 'successful', '2015-02-11 16:08:29')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 16:08:29' WHERE `dispatched_services`.`id` = 2111[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081938[0m
[1m[35m (0.7ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '52a082080f04d451372ca765b36aa639' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:07', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:07', 'format', 'journal', 969082218, 'journal')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:07', 'isbn', 1, '9789810743734', 969082218, '9789810743734')
[1m[36m (35.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082218, '52a082080f04d451372ca765b36aa639')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081939
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:07', NULL, 969081939, 'test_bd', 'queued', '2015-02-11 19:57:07')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:07' WHERE `dispatched_services`.`id` = 2112[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081939 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082218)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082218)[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081939) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081939)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (24.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081939 AND `dispatched_services`.`id` = 2112 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081939, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.003819s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2112[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081939 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082218 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082218)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081939 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (10.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081939 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/index.html.erb within layouts/umlaut (82.4ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082218[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (11.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081939[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 822ms (Views: 245.9ms | ActiveRecord: 164.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 14:57:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99865695deee2163593ac508685953a3' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:08', 'some book')[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'format', 'book', 969082219, 'book')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'genre', 1, 'book', 969082219, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'author', 1, 'smith', 969082219, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'title', 1, 'some book', 969082219, 'Some Book')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 19:57:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082219, '99865695deee2163593ac508685953a3')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081940[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:08', NULL, 969081940, 'BorrowDirect', 'queued', '2015-02-11 19:57:08')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2113
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081940 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082219)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082219)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081940) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081940)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081940 AND `dispatched_services`.`id` = 2113 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081940, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2113
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081940 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082219 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082219)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081940 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081940 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082219[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081940[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 271ms (Views: 19.6ms | ActiveRecord: 124.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 14:57:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d7925bbb90da3cd3e315c8639767c11' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:08', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'format', 'journal', 969082220, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'genre', 1, 'article', 969082220, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'title', 1, 'foo', 969082220, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'author', 1, 'bar', 969082220, 'bar')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 19:57:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082220, '1d7925bbb90da3cd3e315c8639767c11')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081941[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:08', NULL, 969081941, 'BorrowDirect', 'queued', '2015-02-11 19:57:08')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2114
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081941 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082220)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082220)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081941) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081941)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081941 AND `dispatched_services`.`id` = 2114 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2114[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081941 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082220 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082220)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081941 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081941 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082220
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081941
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 203ms (Views: 18.4ms | ActiveRecord: 112.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e58debd80c7876f30f6dfd19dd91f2ba' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:08', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'format', 'book', 969082221, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'genre', 1, 'book', 969082221, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:08', 'title', 1, 'foo', 969082221, 'foo')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 19:57:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082221, 'e58debd80c7876f30f6dfd19dd91f2ba')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081942 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:08', NULL, 969081942, 'BorrowDirect', 'failed_fatal', '2015-02-11 19:57:08')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:08' WHERE `dispatched_services`.`id` = 2115[0m
[1m[35m (14.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081942" for 127.0.0.1 at 2015-02-11 14:57:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081942"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081942 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082221 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082221)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081942[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081942[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081942 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081942[0m [["request_id", 969081942]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082221 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082221)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081942 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081942 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (2.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082221
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081942
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 72ms (Views: 18.5ms | ActiveRecord: 46.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '829e39fb80e71ea716b42e8401e0b25a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:09', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'format', 'journal', 969082222, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'isbn', 1, '9789810743734', 969082222, '9789810743734')
[1m[36m (32.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082222, '829e39fb80e71ea716b42e8401e0b25a')[0m
[1m[35m (31.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081943
[1m[36m (27.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (33.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:09', NULL, 969081943, 'BorrowDirect', 'queued', '2015-02-11 19:57:09')
[1m[36m (64.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2116[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082222)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222)[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081943) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081943)[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`id` = 2116 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081943, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:09', 'Choose your delivery location', 969081943, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2116
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082222 LIMIT 1[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081943 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (44.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (47.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (48.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082222
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081943
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 437ms (Views: 66.1ms | ActiveRecord: 248.0ms)
Started GET "/borrow_direct/BorrowDirect/969081943?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 14:57:09 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081943"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081943 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2116
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:09', 969081943, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082222 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081943&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 37.1ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2116[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012926
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081943&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:57:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081943", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:57:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082222 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081943
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081943 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 [["request_id", 969081943]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082222 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082222)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081943 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081943 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082222[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081943[0m
[1m[35m (15.3ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 21.5ms | ActiveRecord: 42.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 14:57:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '456150599ac36ab0a7056ab494ba1503' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:09', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'format', 'journal', 969082223, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'isbn', 1, '0109836413', 969082223, '0109836413')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 19:57:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082223, '456150599ac36ab0a7056ab494ba1503')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081944[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:09', NULL, 969081944, 'BorrowDirect', 'queued', '2015-02-11 19:57:09')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2117
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081944 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082223)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082223)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081944) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081944)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081944 AND `dispatched_services`.`id` = 2117 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081944, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:09', 'This item is not currently available from BorrowDirect', 969081944, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2117[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081944 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082223 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082223)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081944 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081944 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082223
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081944
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 242ms (Views: 19.8ms | ActiveRecord: 112.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f34961a04f26d344b0d7cc95b3467bc4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:09', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'format', 'journal', 969082224, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:09', 'isbn', 1, '9789810743734', 969082224, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082224, 'f34961a04f26d344b0d7cc95b3467bc4')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081945
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:09', NULL, 969081945, 'BorrowDirect', 'queued', '2015-02-11 19:57:09')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:09' WHERE `dispatched_services`.`id` = 2118[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082224)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224)[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081945) ORDER BY id ASC
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081945)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`id` = 2118 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081945, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 'Choose your delivery location', 969081945, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2118
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082224 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081945 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (41.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082224
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081945
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 294ms (Views: 62.8ms | ActiveRecord: 120.5ms)
Started GET "/borrow_direct/BorrowDirect/969081945?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 14:57:10 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081945"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081945 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2118
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 969081945, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082224 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081945&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 54ms (ActiveRecord: 38.6ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2118[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012931
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081945&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:57:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081945", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:57:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082224 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081945
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081945 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 [["request_id", 969081945]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082224 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082224)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081945 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081945 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082224[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081945[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 71ms (Views: 18.4ms | ActiveRecord: 42.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f98eedac718388b334cc5d4f4eab33a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:10', '9789810743734')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:10', 'format', 'journal', 969082225, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:10', 'isbn', 1, '9789810743734', 969082225, '9789810743734')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082225, '5f98eedac718388b334cc5d4f4eab33a')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081946[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:10', NULL, 969081946, 'BorrowDirect', 'queued', '2015-02-11 19:57:10')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2119
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081946 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082225)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082225)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081946) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081946)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081946 AND `dispatched_services`.`id` = 2119 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081946, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 'Choose your delivery location', 969081946, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2119[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081946 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082225 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082225)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081946 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081946 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081946 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082225[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081946[0m
[1m[35m (15.8ms)[0m COMMIT
Completed 200 OK in 249ms (Views: 22.7ms | ActiveRecord: 114.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:57:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9de11c5b99cde8a8fd1052d19d62b32' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:10', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:10', 'format', 'journal', 969082226, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:10', 'isbn', 1, '9789810743734', 969082226, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082226, 'c9de11c5b99cde8a8fd1052d19d62b32')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081947[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:10', NULL, 969081947, 'BorrowDirect', 'queued', '2015-02-11 19:57:10')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2120
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082226)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081947) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081947)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`id` = 2120 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081947, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 'Choose your delivery location', 969081947, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:57:10' WHERE `dispatched_services`.`id` = 2120[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (44.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082226 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081947 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082226[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081947[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 293ms (Views: 64.6ms | ActiveRecord: 116.2ms)
Started GET "/borrow_direct/BorrowDirect/969081947" for 127.0.0.1 at 2015-02-11 14:57:10 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081947"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081947 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:10', 969081947, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082226 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081947&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 19.7ms)
Started GET "/resolve?umlaut.request_id=969081947&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:57:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081947", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:57:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082226 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081947
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 [["request_id", 969081947]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082226 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082226)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081947 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081947 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081947 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082226
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081947
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 75ms (Views: 22.7ms | ActiveRecord: 43.3ms)
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1cc486831a01640596e95de3ca802e84' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:11', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082227, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'title', 1, 'title', 969082227, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'author', 1, 'au', 969082227, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082227, '1cc486831a01640596e95de3ca802e84')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081948, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081948, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081948 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081948, 'test_bd', 'successful', '2015-02-11 19:57:11')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2121[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081948[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081948 ORDER BY id ASC
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f935363bb9a3cca04fe32b861407cfe2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:11', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082228, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'title', 1, 'title', 969082228, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'author', 1, 'au', 969082228, 'au')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082228, 'f935363bb9a3cca04fe32b861407cfe2')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081949, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081949 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081949 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081949, 'test_bd', 'successful', '2015-02-11 19:57:11')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2122
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081949
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4c8f0928deb0fd231b3ed0a9850eb560' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:11', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082229, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'title', 1, 'title', 969082229, 'title')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'author', 1, 'au', 969082229, 'au')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082229, '4c8f0928deb0fd231b3ed0a9850eb560')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081950, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081950 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081950, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081950 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081950, 'test_bd', 'successful', '2015-02-11 19:57:11')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2123[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081950[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e94bbf9e3ea79f5cbc7b894f32df3d3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:11', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082230, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'title', 1, 'title', 969082230, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'author', 1, 'au', 969082230, 'au')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082230, '5e94bbf9e3ea79f5cbc7b894f32df3d3')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081951, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081951 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081951, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081951 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081951, 'test_bd', 'successful', '2015-02-11 19:57:11')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2124
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081951
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.1ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ec03e0b07a83eae4b37fe86cb8ed4e4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:11', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082231, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'isbn', 1, '121212', 969082231, '121212')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082231, '3ec03e0b07a83eae4b37fe86cb8ed4e4')[0m
[1m[35m (13.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081952"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081952 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081952 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969081952
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081952, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081952\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082231 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082231)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081952&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.9ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5ee2d2988c61706ecb48a03249d4317' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:11', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082232, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'isbn', 1, '121212', 969082232, '121212')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082232, 'c5ee2d2988c61706ecb48a03249d4317')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081953, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081953"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081953 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081953 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070012945
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081953, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070012945\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082232 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082232)
Redirected to http://test.host/resolve?umlaut.request_id=969081953&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 28ms (ActiveRecord: 21.6ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a0ac1a41290b859c2332786243a0ba4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:11', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082233, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'isbn', 1, '121212', 969082233, '121212')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:57:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082233, '8a0ac1a41290b859c2332786243a0ba4')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081954, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081954"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081954 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081954 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081954 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:11', NULL, 969081954, 'BorrowDirect', 'in_progress', '2015-02-11 19:57:11')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2125
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:11', 969081954, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082233 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082233)
Redirected to http://test.host/resolve?umlaut.request_id=969081954&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 69ms (ActiveRecord: 56.0ms)
[1m[36mDispatchedService Load (4.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081954[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081954 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081954 ORDER BY id ASC[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 19:57:11' WHERE `dispatched_services`.`id` = 2125[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012948
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '997ae55672ec9cd647aa69e7c11ead06' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:11', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'format', 'journal', 969082234, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:11', 'isbn', 1, '121212', 969082234, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082234, '997ae55672ec9cd647aa69e7c11ead06')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081955"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081955 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081955 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:12', 969081955, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082234 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082234)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081955&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A57%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.9ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37b68f7ac4577af91d249514ad7c16b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082235, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '9789810743734', 969082235, '9789810743734')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082235, '37b68f7ac4577af91d249514ad7c16b3')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081956 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081956, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081956 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081956, 'test_bd', 'successful', '2015-02-11 19:57:12')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2126
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081956
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3927d8b0d2b48528eca2606ced16c007' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 19:57:12', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082236, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'auinit', 1, 'rd', 969082236, 'RD')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'aulast', 1, 'kaplan', 969082236, 'Kaplan')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'atitle', 1, 'the coming anarchy', 969082236, 'The coming anarchy')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'title', 1, 'the atlantic monthly', 969082236, 'The Atlantic monthly')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'volume', 1, '273', 969082236, '273')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'issue', 1, '2', 969082236, '2')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'date', 1, '1994', 969082236, '1994')[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'spage', 1, '44', 969082236, '44')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'issn', 1, '1072-7825', 969082236, '1072-7825')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082236, 'info:sid/google', '3927d8b0d2b48528eca2606ced16c007')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081957 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081957, 'test_bd', 'successful', '2015-02-11 19:57:12')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2127[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081957[0m
[1m[35mServiceResponse Exists (1.4ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081957 LIMIT 1
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10acca0a13f002257c489da65c649241' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 19:57:12', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'book', 969082237, 'book')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'auinit', 1, 'eh', 969082237, 'EH')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'aulast', 1, 'lenneberg', 969082237, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'title', 1, 'biological foundations of language', 969082237, 'Biological foundations of language')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'genre', 1, 'book', 969082237, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'date', 1, '1967', 969082237, '1967')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082237, 'info:sid/google', '10acca0a13f002257c489da65c649241')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081958 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081958, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081958 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081958, 'test_bd', 'successful', '2015-02-11 19:57:12')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2128[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081958[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4269d62442c888466de252aaeb749f8b' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:57:12', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082238, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082238, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'aulast', 1, 'grimes', 969082238, 'Grimes')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082238, '4269d62442c888466de252aaeb749f8b')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081959, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081959 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a16b59f5da305c67b446122e9d568c8f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082239, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '9789810743734', 969082239, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082239, 'a16b59f5da305c67b446122e9d568c8f')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081960 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081960, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:12', 'Choose your delivery location', 969081960, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081960 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081960, 'test_bd', 'successful', '2015-02-11 19:57:12')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2129[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081960[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9fefa0ec797c79588f2279f1f735b81c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082240, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '0109836413', 969082240, '0109836413')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082240, '9fefa0ec797c79588f2279f1f735b81c')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081961 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081961, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:12', 'This item is not currently available from BorrowDirect', 969081961, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081961 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081961, 'test_bd', 'successful', '2015-02-11 19:57:12')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2130[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081961[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '778371dc4f7811f8d2750d05edbec03f' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '000000000')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082241, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '000000000', 969082241, '000000000')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082241, '778371dc4f7811f8d2750d05edbec03f')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081962 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081962, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:57:12', 'This item is not currently available from BorrowDirect', 969081962, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081962 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081962, 'test_bd', 'successful', '2015-02-11 19:57:12')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2131[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081962[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a0f8806c0c937cbc166b04444447c9e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:57:12', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'format', 'journal', 969082242, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:57:12', 'isbn', 1, '9789810743734', 969082242, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:57:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082242, '2a0f8806c0c937cbc166b04444447c9e')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081963 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:57:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081963, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (13.9ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081963 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:57:12', NULL, 969081963, 'test_bd', 'failed_temporary', '2015-02-11 19:57:12')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-fd53684ca867/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-e160f1c4db2a/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 19:57:12' WHERE `dispatched_services`.`id` = 2132
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081963
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2ba25da0cb365d68fc728e4b988159e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:10', '9789810743734')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:10', 'format', 'journal', 969082243, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:10', 'isbn', 1, '9789810743734', 969082243, '9789810743734')
[1m[36m (22.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082243, 'e2ba25da0cb365d68fc728e4b988159e')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081964 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081964, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081964 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081964, 'test_bd', 'successful', '2015-02-11 19:58:11')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2133
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081964
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 19ms (Views: 11.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a6828fdf8cfb16d5304acdb632aafdd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:11', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082244, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'isbn', 1, '121212', 969082244, '121212')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082244, '2a6828fdf8cfb16d5304acdb632aafdd')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081965"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081965 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081965 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969081965
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081965, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081965\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082244 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082244)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081965&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 36ms (ActiveRecord: 21.8ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a11ce776f49bcb3c21d108ea716dab7d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:11', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082245, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'isbn', 1, '121212', 969082245, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082245, 'a11ce776f49bcb3c21d108ea716dab7d')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081966, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081966"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081966 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081966 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081966 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081966, 'BorrowDirect', 'in_progress', '2015-02-11 19:58:11')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2134[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081966, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082245 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082245)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081966&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 66ms (ActiveRecord: 56.1ms)
[1m[35mDispatchedService Load (4.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081966
[1m[36mServiceResponse Load (6.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081966 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e48c40271dba3b3fc7d73aa39d88f2b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:11', '121212')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081966 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082246, 'journal')
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'isbn', 1, '121212', 969082246, '121212')
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2134[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082246, '5e48c40271dba3b3fc7d73aa39d88f2b')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012963[0m
[1m[35m (15.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081967"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081967 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081967 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081967, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082246 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082246)
Redirected to http://test.host/resolve?umlaut.request_id=969081967&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.3ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1799d78e0827b82f8d10783b9041c0c2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:11', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082247, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'title', 1, 'title', 969082247, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'author', 1, 'au', 969082247, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082247, '1799d78e0827b82f8d10783b9041c0c2')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081968, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081968, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081968 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081968, 'test_bd', 'successful', '2015-02-11 19:58:11')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2135
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081968
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081968 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '58957771bb5fdb896d291c101649f23d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:11', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082248, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'title', 1, 'title', 969082248, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'author', 1, 'au', 969082248, 'au')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082248, '58957771bb5fdb896d291c101649f23d')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081969, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081969 ORDER BY id ASC[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081969, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081969 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081969, 'test_bd', 'successful', '2015-02-11 19:58:11')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:11' WHERE `dispatched_services`.`id` = 2136
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081969
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfa11cb355e70aa927733ae1d887ec77' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:11', 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'format', 'journal', 969082249, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'title', 1, 'title', 969082249, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:11', 'author', 1, 'au', 969082249, 'au')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:58:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082249, 'dfa11cb355e70aa927733ae1d887ec77')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:11', 969081970, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081970 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081970, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081970 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:11', NULL, 969081970, 'test_bd', 'successful', '2015-02-11 19:58:11')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2137[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081970[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0349e67287c2fe71c34028a437a6945d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:12', 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082250, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'title', 1, 'title', 969082250, 'title')
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'author', 1, 'au', 969082250, 'au')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082250, '0349e67287c2fe71c34028a437a6945d')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:12', 969081971, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081971 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081971 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081971, 'test_bd', 'successful', '2015-02-11 19:58:12')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2138[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081971[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8405c7b329fa571958a4299c742a1b6' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:12', '000000000')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082251, 'journal')[0m
[1m[35mSQL (0.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'isbn', 1, '000000000', 969082251, '000000000')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082251, 'e8405c7b329fa571958a4299c742a1b6')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081972 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081972, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:12', 'This item is not currently available from BorrowDirect', 969081972, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081972 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081972, 'test_bd', 'successful', '2015-02-11 19:58:12')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2139[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081972[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da4d24b629ee7080c401c33e28d74c1c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:12', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082252, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'isbn', 1, '0109836413', 969082252, '0109836413')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082252, 'da4d24b629ee7080c401c33e28d74c1c')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081973 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081973, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:12', 'This item is not currently available from BorrowDirect', 969081973, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081973 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081973, 'test_bd', 'successful', '2015-02-11 19:58:12')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2140[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081973[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b8a7198acce3f44e5c727c0dae04995' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:12', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082253, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'isbn', 1, '9789810743734', 969082253, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082253, '9b8a7198acce3f44e5c727c0dae04995')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081974 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081974, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:12', 'Choose your delivery location', 969081974, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081974 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081974, 'test_bd', 'successful', '2015-02-11 19:58:12')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2141[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081974[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '86acba68c93f8aa57d89e89684c0f2e4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:12', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082254, 'journal')[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'isbn', 1, '9789810743734', 969082254, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082254, '86acba68c93f8aa57d89e89684c0f2e4')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081975 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081975, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081975 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081975, 'test_bd', 'failed_temporary', '2015-02-11 19:58:12')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2142
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081975
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1452cc580c6eb6b7b7266e65a271f49' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:12', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082255, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082255, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'aulast', 1, 'grimes', 969082255, 'Grimes')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082255, 'a1452cc580c6eb6b7b7266e65a271f49')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081976, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081976 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6f995778a91d5cccc4f0cabc3524799' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 19:58:12', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'journal', 969082256, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'auinit', 1, 'rd', 969082256, 'RD')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'aulast', 1, 'kaplan', 969082256, 'Kaplan')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'atitle', 1, 'the coming anarchy', 969082256, 'The coming anarchy')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'title', 1, 'the atlantic monthly', 969082256, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'volume', 1, '273', 969082256, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'issue', 1, '2', 969082256, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'date', 1, '1994', 969082256, '1994')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'spage', 1, '44', 969082256, '44')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'issn', 1, '1072-7825', 969082256, '1072-7825')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082256, 'info:sid/google', 'd6f995778a91d5cccc4f0cabc3524799')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081977 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081977, 'test_bd', 'successful', '2015-02-11 19:58:12')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2143[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081977[0m
[1m[35mServiceResponse Exists (1.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969081977 LIMIT 1
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fa8afdef1f34148ef526b997ab036b2' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 19:58:12', 'biological foundations of language', '1967')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'format', 'book', 969082257, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'auinit', 1, 'eh', 969082257, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'aulast', 1, 'lenneberg', 969082257, 'Lenneberg')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'title', 1, 'biological foundations of language', 969082257, 'Biological foundations of language')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'genre', 1, 'book', 969082257, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:12', 'date', 1, '1967', 969082257, '1967')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 19:58:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082257, 'info:sid/google', '3fa8afdef1f34148ef526b997ab036b2')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081978 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081978, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081978 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:12', NULL, 969081978, 'test_bd', 'successful', '2015-02-11 19:58:12')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:12' WHERE `dispatched_services`.`id` = 2144[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081978[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc16cc32dab52abb37a00f52799fd53f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:13', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:13', 'format', 'journal', 969082258, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:13', 'isbn', 1, '9789810743734', 969082258, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082258, 'cc16cc32dab52abb37a00f52799fd53f')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081979
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:13', NULL, 969081979, 'test_bd', 'queued', '2015-02-11 19:58:13')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:13' WHERE `dispatched_services`.`id` = 2145[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081979 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082258)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082258)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081979) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081979)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081979 AND `dispatched_services`.`id` = 2145 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081979, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 19:58:13' WHERE `dispatched_services`.`id` = 2145[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081979 LIMIT 1[0m
[1m[35mDispatchedService Load (7.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082258 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082258)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081979 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081979 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.6ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082258[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081979[0m
[1m[35m (15.6ms)[0m COMMIT
Completed 200 OK in 3532ms (Views: 3246.0ms | ActiveRecord: 119.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 14:58:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '347e90ccf31d05529f2c4ccea1dd9bec' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:16', 'some book')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'format', 'book', 969082259, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'genre', 1, 'book', 969082259, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'author', 1, 'smith', 969082259, 'Smith')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'title', 1, 'some book', 969082259, 'Some Book')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 19:58:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082259, '347e90ccf31d05529f2c4ccea1dd9bec')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081980[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:16', NULL, 969081980, 'BorrowDirect', 'queued', '2015-02-11 19:58:16')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:16' WHERE `dispatched_services`.`id` = 2146
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081980 LIMIT 1
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082259)[0m
[1m[35mReferentValue Load (1.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082259)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081980) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081980)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081980 AND `dispatched_services`.`id` = 2146 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081980, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:16' WHERE `dispatched_services`.`id` = 2146
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081980 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082259 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082259)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081980 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081980 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082259[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081980[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 281ms (Views: 20.0ms | ActiveRecord: 125.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 14:58:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd96a3fe1631eb9cd170edaf7e3f6912' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:16', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'format', 'journal', 969082260, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'genre', 1, 'article', 969082260, 'article')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'title', 1, 'foo', 969082260, 'foo')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:16', 'author', 1, 'bar', 969082260, 'bar')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 19:58:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082260, 'dd96a3fe1631eb9cd170edaf7e3f6912')
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081981[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:16', NULL, 969081981, 'BorrowDirect', 'queued', '2015-02-11 19:58:16')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:16' WHERE `dispatched_services`.`id` = 2147
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081981 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082260)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082260)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081981) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081981)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081981 AND `dispatched_services`.`id` = 2147 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:16' WHERE `dispatched_services`.`id` = 2147[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081981 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082260 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082260)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081981 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081981 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082260
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081981
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 210ms (Views: 18.9ms | ActiveRecord: 119.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '465a25c7a01bbce0e78490f14d085704' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 19:58:17', 'foo')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'format', 'book', 969082261, 'book')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'genre', 1, 'book', 969082261, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'title', 1, 'foo', 969082261, 'foo')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 19:58:17', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082261, '465a25c7a01bbce0e78490f14d085704')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081982 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:17', NULL, 969081982, 'BorrowDirect', 'failed_fatal', '2015-02-11 19:58:17')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2148[0m
[1m[35m (14.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969081982" for 127.0.0.1 at 2015-02-11 14:58:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081982"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081982 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082261 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082261)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081982[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081982[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081982 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081982[0m [["request_id", 969081982]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082261 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082261)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081982 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081982 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082261
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969081982
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 70ms (Views: 19.2ms | ActiveRecord: 43.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9aace551fc70d5c25123084dfe7d5f69' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:17', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'format', 'journal', 969082262, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'isbn', 1, '9789810743734', 969082262, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082262, '9aace551fc70d5c25123084dfe7d5f69')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081983
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:17', NULL, 969081983, 'BorrowDirect', 'queued', '2015-02-11 19:58:17')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2149[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082262)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081983) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081983)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`id` = 2149 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081983, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:17', 'Choose your delivery location', 969081983, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2149
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082262 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081983 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082262
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081983
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 252ms (Views: 25.6ms | ActiveRecord: 111.1ms)
Started GET "/borrow_direct/BorrowDirect/969081983?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 14:58:17 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081983"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081983 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2149
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:17', 969081983, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082262 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081983&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
Completed 303 See Other in 53ms (ActiveRecord: 38.3ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2149[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012985
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081983&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:58:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081983", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:58:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082262 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081983
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081983 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 [["request_id", 969081983]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082262 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082262)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081983 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081983 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082262[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081983[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 75ms (Views: 20.5ms | ActiveRecord: 45.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 14:58:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '315a94efb3c1f47a562218fbecbc55e4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:17', '0109836413')[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'format', 'journal', 969082263, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'isbn', 1, '0109836413', 969082263, '0109836413')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 19:58:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082263, '315a94efb3c1f47a562218fbecbc55e4')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081984[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:17', NULL, 969081984, 'BorrowDirect', 'queued', '2015-02-11 19:58:17')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2150
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081984 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082263)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082263)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081984) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081984)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081984 AND `dispatched_services`.`id` = 2150 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081984, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:17', 'This item is not currently available from BorrowDirect', 969081984, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:17' WHERE `dispatched_services`.`id` = 2150[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081984 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082263 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082263)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081984 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081984 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082263
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081984
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 20.1ms | ActiveRecord: 112.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecb619e19d885db902d4d9dcf98cae1e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:17', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'format', 'journal', 969082264, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:17', 'isbn', 1, '9789810743734', 969082264, '9789810743734')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082264, 'ecb619e19d885db902d4d9dcf98cae1e')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081985
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:18', NULL, 969081985, 'BorrowDirect', 'queued', '2015-02-11 19:58:18')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2151[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082264)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264)[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081985) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081985)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`id` = 2151 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081985, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:18', 'Choose your delivery location', 969081985, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2151
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082264 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081985 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082264
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081985
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 250ms (Views: 21.5ms | ActiveRecord: 115.2ms)
Started GET "/borrow_direct/BorrowDirect/969081985?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 14:58:18 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969081985"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081985 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2151
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:18', 969081985, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082264 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264)
Redirected to http://www.example.com/resolve?umlaut.request_id=969081985&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 55ms (ActiveRecord: 37.9ms)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2151[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070012990
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969081985&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:58:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081985", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:58:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082264 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081985
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081985 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 [["request_id", 969081985]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082264 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082264)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081985 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081985 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082264[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081985[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 22.3ms | ActiveRecord: 46.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1bb219beaf700c8ba1cdfe3744f9ce1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:18', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:18', 'format', 'journal', 969082265, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:18', 'isbn', 1, '9789810743734', 969082265, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082265, 'a1bb219beaf700c8ba1cdfe3744f9ce1')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081986[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:18', NULL, 969081986, 'BorrowDirect', 'queued', '2015-02-11 19:58:18')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2152
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081986 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082265)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082265)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081986) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081986)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081986 AND `dispatched_services`.`id` = 2152 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081986, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:18', 'Choose your delivery location', 969081986, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2152[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081986 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082265 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082265)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081986 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081986 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081986 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082265[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081986[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 255ms (Views: 21.6ms | ActiveRecord: 115.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 14:58:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f33b3b44191643df17f51b6145559c97' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 19:58:18', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:18', 'format', 'journal', 969082266, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 19:58:18', 'isbn', 1, '9789810743734', 969082266, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 19:58:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082266, 'f33b3b44191643df17f51b6145559c97')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081987[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 19:58:18', NULL, 969081987, 'BorrowDirect', 'queued', '2015-02-11 19:58:18')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2153
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082266)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081987) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081987)
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`id` = 2153 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 19:58:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081987, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:18', 'Choose your delivery location', 969081987, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 19:58:18' WHERE `dispatched_services`.`id` = 2153[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082266 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081987 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082266[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081987[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 252ms (Views: 22.1ms | ActiveRecord: 115.7ms)
Started GET "/borrow_direct/BorrowDirect/969081987" for 127.0.0.1 at 2015-02-11 14:58:19 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081987"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081987 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 19:58:19', 969081987, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082266 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969081987&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.3ms)
Started GET "/resolve?umlaut.request_id=969081987&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T14%3A58%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 14:58:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969081987", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T14:58:19-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082266 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081987
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 [["request_id", 969081987]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082266 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082266)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081987 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081987 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081987 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082266
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-361bc2ce4fa6/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081987
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 22.8ms | ActiveRecord: 44.2ms)
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 53ms (Views: 11.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 77ms (Views: 0.4ms | ActiveRecord: 6.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c62536671b58a2f41e018236565f4fb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:04', '121212')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'format', 'journal', 969082267, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'isbn', 1, '121212', 969082267, '121212')[0m
[1m[35m (22.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082267, '5c62536671b58a2f41e018236565f4fb')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969081988"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081988 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081988 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969081988
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:04', 969081988, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969081988\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082267 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082267)
Redirected to http://test.host/resolve?umlaut.request_id=969081988&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 68ms (ActiveRecord: 28.7ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6352dd2ccb18967fbac61d1578cde04' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:04', '121212')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'format', 'journal', 969082268, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'isbn', 1, '121212', 969082268, '121212')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082268, 'b6352dd2ccb18967fbac61d1578cde04')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:04', 969081989, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969081989"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081989 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081989 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081989 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:04', NULL, 969081989, 'BorrowDirect', 'in_progress', '2015-02-11 20:00:04')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:04' WHERE `dispatched_services`.`id` = 2154
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:04', 969081989, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082268 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082268)
Redirected to http://test.host/resolve?umlaut.request_id=969081989&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 115ms (ActiveRecord: 61.5ms)
[1m[36mDispatchedService Load (4.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081989[0m
[1m[35mServiceResponse Load (6.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081989 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e59e904e029ff1d81ed1140c9de5e4f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:04', '121212')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081989 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'format', 'journal', 969082269, 'journal')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:04', 'isbn', 1, '121212', 969082269, '121212')[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 20:00:04' WHERE `dispatched_services`.`id` = 2154
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082269, '8e59e904e029ff1d81ed1140c9de5e4f')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070012998
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969081990"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081990 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081990 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 969081990, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082269 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082269)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969081990&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 22.8ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4577a816bee4e2b9d2191cbffc63f4b8' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:05', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082270, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'title', 1, 'title', 969082270, 'title')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'author', 1, 'au', 969082270, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082270, '4577a816bee4e2b9d2191cbffc63f4b8')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 969081991, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081991, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081991 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081991, 'test_bd', 'successful', '2015-02-11 20:00:05')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2155[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081991[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081991 ORDER BY id ASC
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc481dca677e9a6bc71d2ed488610c7f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:05', '0109836413')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082271, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'isbn', 1, '0109836413', 969082271, '0109836413')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082271, 'cc481dca677e9a6bc71d2ed488610c7f')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081992 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081992, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 'This item is not currently available from BorrowDirect', 969081992, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081992 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081992, 'test_bd', 'successful', '2015-02-11 20:00:05')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2156
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081992
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b9cd516e49c0335264dafdd63e966a8b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:05', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082272, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'isbn', 1, '9789810743734', 969082272, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082272, 'b9cd516e49c0335264dafdd63e966a8b')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081993 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081993, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081993 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081993, 'test_bd', 'failed_temporary', '2015-02-11 20:00:05')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/code/umlaut/lib/umlaut/test_help.rb:33:in `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2157[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081993[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f10e83870e1024c1c8260f4b1a734d24' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:05', '000000000')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082273, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'isbn', 1, '000000000', 969082273, '000000000')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082273, 'f10e83870e1024c1c8260f4b1a734d24')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081994 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081994, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 'This item is not currently available from BorrowDirect', 969081994, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081994 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081994, 'test_bd', 'successful', '2015-02-11 20:00:05')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2158[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081994[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b51e4208e0d6ffa09d2ab74b15799c21' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:05', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082274, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'isbn', 1, '9789810743734', 969082274, '9789810743734')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082274, 'b51e4208e0d6ffa09d2ab74b15799c21')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081995 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081995, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 'Choose your delivery location', 969081995, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081995 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081995, 'test_bd', 'successful', '2015-02-11 20:00:05')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2159[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081995[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f96b48ab2135f3f9da26503528130423' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:05', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082275, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'title', 1, 'title', 969082275, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'author', 1, 'au', 969082275, 'au')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082275, 'f96b48ab2135f3f9da26503528130423')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 969081996, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081996 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081996, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081996 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081996, 'test_bd', 'successful', '2015-02-11 20:00:05')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2160
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081996
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '36f2e9bb98f559cf15b9fd076043ae93' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:05', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082276, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'title', 1, 'title', 969082276, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'author', 1, 'au', 969082276, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082276, '36f2e9bb98f559cf15b9fd076043ae93')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:05', 969081997, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081997 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081997, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081997 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:05', NULL, 969081997, 'test_bd', 'successful', '2015-02-11 20:00:05')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:05' WHERE `dispatched_services`.`id` = 2161[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081997[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05154adac31bbc82d2c0766822ae5217' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:05', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'format', 'journal', 969082277, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'title', 1, 'title', 969082277, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:05', 'author', 1, 'au', 969082277, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-11 20:00:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082277, '05154adac31bbc82d2c0766822ae5217')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:06', 969081998, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081998 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081998 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:06', NULL, 969081998, 'test_bd', 'successful', '2015-02-11 20:00:06')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:06' WHERE `dispatched_services`.`id` = 2162[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081998[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.6ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7926a3cee87e2c267d5ddbd5dae5b417' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:06', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:06', 'format', 'journal', 969082278, 'journal')[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:06', 'isbn', 1, '9789810743734', 969082278, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082278, '7926a3cee87e2c267d5ddbd5dae5b417')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081999
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:06', NULL, 969081999, 'test_bd', 'queued', '2015-02-11 20:00:06')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:06' WHERE `dispatched_services`.`id` = 2163[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081999 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082278)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082278)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969081999) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969081999)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969081999 AND `dispatched_services`.`id` = 2163 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969081999, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut/app/service_adaptors/service.rb:92:in `handle_wrapper\'\n- /Users/jrochkind/code/umlaut/app/models/service_wave.rb:88:in `block (2 levels)\n in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-11 20:00:06' WHERE `dispatched_services`.`id` = 2163[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969081999 LIMIT 1[0m
[1m[35mDispatchedService Load (40.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082278 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082278)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (10.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969081999 ORDER BY id ASC[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (20.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (2.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (13.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969081999 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (4.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (13.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.6ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082278[0m
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (11.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969081999[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 2287ms (Views: 2034.8ms | ActiveRecord: 119.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-11 15:00:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7f2e2f4cf4e2e974973bedb60e470a9' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:08', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'format', 'book', 969082279, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'genre', 1, 'book', 969082279, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'author', 1, 'smith', 969082279, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'title', 1, 'some book', 969082279, 'Some Book')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-11 20:00:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082279, 'f7f2e2f4cf4e2e974973bedb60e470a9')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082000[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:08', NULL, 969082000, 'BorrowDirect', 'queued', '2015-02-11 20:00:08')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:08' WHERE `dispatched_services`.`id` = 2164
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082000 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082279)[0m
[1m[35mReferentValue Load (1.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082279)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082000) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082000)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (22.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082000 AND `dispatched_services`.`id` = 2164 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082000, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:08' WHERE `dispatched_services`.`id` = 2164
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082000 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082279 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082279)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082000 ORDER BY id ASC[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082000 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082279[0m
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (22.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082000[0m
[1m[35m (13.5ms)[0m COMMIT
Completed 200 OK in 264ms (Views: 20.6ms | ActiveRecord: 140.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-11 15:00:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3c859a3c68381e9caf158d8587aa2a5' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:08', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'format', 'journal', 969082280, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'genre', 1, 'article', 969082280, 'article')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'title', 1, 'foo', 969082280, 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:08', 'author', 1, 'bar', 969082280, 'bar')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-11 20:00:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082280, 'b3c859a3c68381e9caf158d8587aa2a5')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082001[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:08', NULL, 969082001, 'BorrowDirect', 'queued', '2015-02-11 20:00:08')[0m
[1m[35m (13.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:08' WHERE `dispatched_services`.`id` = 2165
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082001 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082280)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082280)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082001) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082001)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (21.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082001 AND `dispatched_services`.`id` = 2165 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:08' WHERE `dispatched_services`.`id` = 2165[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082001 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082280 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082280)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082001 ORDER BY id ASC[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082001 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082280[0m
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082001[0m
[1m[35m (24.7ms)[0m COMMIT
Completed 200 OK in 227ms (Views: 16.2ms | ActiveRecord: 130.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6fc76de975e886cab4bcf76691248e33' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:09', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'format', 'book', 969082281, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'genre', 1, 'book', 969082281, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'title', 1, 'foo', 969082281, 'foo')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-11 20:00:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082281, '6fc76de975e886cab4bcf76691248e33')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082002 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:09', NULL, 969082002, 'BorrowDirect', 'failed_fatal', '2015-02-11 20:00:09')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2166
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082002" for 127.0.0.1 at 2015-02-11 15:00:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082002"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082002 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082281 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082281)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082002
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082002
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082002 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082002 [["request_id", 969082002]]
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082281 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082281)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082002 ORDER BY id ASC[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082002 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082281[0m
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082002[0m
[1m[35m (17.7ms)[0m COMMIT
Completed 200 OK in 77ms (Views: 17.7ms | ActiveRecord: 51.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4939d1d9aef6068b65f7abc4d947bc4d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:09', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'format', 'journal', 969082282, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'isbn', 1, '9789810743734', 969082282, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082282, '4939d1d9aef6068b65f7abc4d947bc4d')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082003[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:09', NULL, 969082003, 'BorrowDirect', 'queued', '2015-02-11 20:00:09')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2167
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082282)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082003) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082003)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`id` = 2167 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082003, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (13.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:09', 'Choose your delivery location', 969082003, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2167[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082282 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282)[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082003 ORDER BY id ASC
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082282[0m
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082003[0m
[1m[35m (15.3ms)[0m COMMIT
Completed 200 OK in 259ms (Views: 24.8ms | ActiveRecord: 117.5ms)
Started GET "/borrow_direct/BorrowDirect/969082003?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 15:00:09 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082003"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082003 ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2167[0m
[1m[35m (24.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:09', 969082003, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082282 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082003&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 56ms (ActiveRecord: 46.7ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-2676a8059137/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2167
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013018[0m
[1m[35m (14.5ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082003&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 15:00:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082003", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T15:00:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082282 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082003[0m
[1m[35m (13.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003[0m
[1m[35mRequest Load (2.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082003 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003[0m [["request_id", 969082003]]
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082282 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082282)[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082003 ORDER BY id ASC
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082003 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082282
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082003
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 72ms (Views: 20.8ms | ActiveRecord: 42.3ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-11 15:00:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '889cdf6fb37596e4df06f167ff547d84' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:09', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'format', 'journal', 969082283, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:09', 'isbn', 1, '0109836413', 969082283, '0109836413')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-11 20:00:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082283, '889cdf6fb37596e4df06f167ff547d84')[0m
[1m[35m (32.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082004
[1m[36m (22.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:09', NULL, 969082004, 'BorrowDirect', 'queued', '2015-02-11 20:00:09')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2168[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082004 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082283)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082283)[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082004) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082004)[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082004 AND `dispatched_services`.`id` = 2168 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082004, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:09', 'This item is not currently available from BorrowDirect', 969082004, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:09' WHERE `dispatched_services`.`id` = 2168
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082004 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082283 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082283)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082004 ORDER BY id ASC[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (43.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (45.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082004 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082283[0m
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082004[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 313ms (Views: 66.0ms | ActiveRecord: 135.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4425534ee2af6899ec6df9530ad2564' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:10', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'format', 'journal', 969082284, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'isbn', 1, '9789810743734', 969082284, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082284, 'b4425534ee2af6899ec6df9530ad2564')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082005[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:10', NULL, 969082005, 'BorrowDirect', 'queued', '2015-02-11 20:00:10')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2169
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082284)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082005) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082005)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`id` = 2169 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082005, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:10', 'Choose your delivery location', 969082005, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2169[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082284 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284)[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082005 ORDER BY id ASC
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082284[0m
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082005[0m
[1m[35m (19.9ms)[0m COMMIT
Completed 200 OK in 258ms (Views: 21.4ms | ActiveRecord: 122.4ms)
Started GET "/borrow_direct/BorrowDirect/969082005?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-11 15:00:10 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082005"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082005 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2169[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:10', 969082005, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082284 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082005&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 57ms (ActiveRecord: 47.9ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2169
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013023[0m
[1m[35m (23.5ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082005&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 15:00:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082005", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T15:00:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082284 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082005[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082005 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005[0m [["request_id", 969082005]]
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082284 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082284)[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082005 ORDER BY id ASC
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082005 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082284
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082005
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 81ms (Views: 18.7ms | ActiveRecord: 52.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aebf25fd4c4b639ebd56037b6b90817b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:10', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'format', 'journal', 969082285, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'isbn', 1, '9789810743734', 969082285, '9789810743734')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082285, 'aebf25fd4c4b639ebd56037b6b90817b')[0m
[1m[35m (24.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082006
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:10', NULL, 969082006, 'BorrowDirect', 'queued', '2015-02-11 20:00:10')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2170[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082006 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082285)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082285)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082006) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082006)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082006 AND `dispatched_services`.`id` = 2170 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082006, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:10', 'Choose your delivery location', 969082006, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2170
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082006 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082285 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082285)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082006 ORDER BY id ASC[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082006 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082006 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082285
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082006
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 314ms (Views: 22.9ms | ActiveRecord: 132.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-11 15:00:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71b0c6fe293f65b2648c76ebe6e9be43' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:10', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'format', 'journal', 969082286, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:10', 'isbn', 1, '9789810743734', 969082286, '9789810743734')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082286, '71b0c6fe293f65b2648c76ebe6e9be43')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082007
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:10', NULL, 969082007, 'BorrowDirect', 'queued', '2015-02-11 20:00:10')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2171[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082286)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286)[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082007) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082007)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`id` = 2171 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082007, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:10', 'Choose your delivery location', 969082007, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-11 20:00:10' WHERE `dispatched_services`.`id` = 2171
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082286 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082007 ORDER BY id ASC[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082286
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082007
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 251ms (Views: 21.4ms | ActiveRecord: 115.2ms)
Started GET "/borrow_direct/BorrowDirect/969082007" for 127.0.0.1 at 2015-02-11 15:00:11 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082007"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082007 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:11', 969082007, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082286 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082007&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.8ms)
Started GET "/resolve?umlaut.request_id=969082007&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-11 15:00:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082007", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-11T15:00:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082286 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082007[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007[0m [["request_id", 969082007]]
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082286 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082286)[0m
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082007 ORDER BY id ASC
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082007 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082007 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082286[0m
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082007[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 22.2ms | ActiveRecord: 44.3ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '25f93293d5b704dc0384fdc785cdcbfa' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-11 20:00:11', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'format', 'journal', 969082287, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082287, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'aulast', 1, 'grimes', 969082287, 'Grimes')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-11 20:00:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082287, '25f93293d5b704dc0384fdc785cdcbfa')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082008, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082008 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f94968f151a333264ce2d2f66916697' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-11 20:00:11', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'format', 'journal', 969082288, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'auinit', 1, 'rd', 969082288, 'RD')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'aulast', 1, 'kaplan', 969082288, 'Kaplan')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'atitle', 1, 'the coming anarchy', 969082288, 'The coming anarchy')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'title', 1, 'the atlantic monthly', 969082288, 'The Atlantic monthly')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'volume', 1, '273', 969082288, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'issue', 1, '2', 969082288, '2')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'date', 1, '1994', 969082288, '1994')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'spage', 1, '44', 969082288, '44')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'issn', 1, '1072-7825', 969082288, '1072-7825')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-11 20:00:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082288, 'info:sid/google', '8f94968f151a333264ce2d2f66916697')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082009 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:11', NULL, 969082009, 'test_bd', 'successful', '2015-02-11 20:00:11')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:11' WHERE `dispatched_services`.`id` = 2172[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082009[0m
[1m[35mServiceResponse Exists (1.4ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082009 LIMIT 1
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0cff3c7f45b0b5bb43a04783a6f2cb1' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-11 20:00:11', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'format', 'book', 969082289, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'auinit', 1, 'eh', 969082289, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'aulast', 1, 'lenneberg', 969082289, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'title', 1, 'biological foundations of language', 969082289, 'Biological foundations of language')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'genre', 1, 'book', 969082289, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'date', 1, '1967', 969082289, '1967')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-11 20:00:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082289, 'info:sid/google', 'e0cff3c7f45b0b5bb43a04783a6f2cb1')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082010 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082010, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082010 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:11', NULL, 969082010, 'test_bd', 'successful', '2015-02-11 20:00:11')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:11' WHERE `dispatched_services`.`id` = 2173[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082010[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99104ff1247ad1aa9784599cccc31f9b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:11', '9789810743734')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'format', 'journal', 969082290, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:11', 'isbn', 1, '9789810743734', 969082290, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-11 20:00:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082290, '99104ff1247ad1aa9784599cccc31f9b')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082011 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-11 20:00:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082011, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082011 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-11 20:00:11', NULL, 969082011, 'test_bd', 'successful', '2015-02-11 20:00:11')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-11 20:00:11' WHERE `dispatched_services`.`id` = 2174
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082011
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7d708a52d02546bffde818970241bf5d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:43', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:43', 'format', 'journal', 969082291, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:43', 'isbn', 1, '121212', 969082291, '121212')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082291, '7d708a52d02546bffde818970241bf5d')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082012"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082012 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082012 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:43', 969082012, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082291 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082291)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082012&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 69ms (ActiveRecord: 29.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '214bce8c9408b1ab91a3ded57a6af01a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-11 20:00:59', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:59', 'format', 'journal', 969082292, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-11 20:00:59', 'isbn', 1, '121212', 969082292, '121212')
[1m[36m (34.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-11 20:00:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082292, '214bce8c9408b1ab91a3ded57a6af01a')[0m
[1m[35m (25.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082013"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082013 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082013 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-11 20:00:59', 969082013, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082292 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082292)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082013&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-11T15%3A00%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 71ms (ActiveRecord: 30.1ms)
[1m[36mActiveRecord::SchemaMigration Load (1.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '175abbb48dfd0c9615fe9ff3fcc123a1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:02', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082293, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'title', 1, 'title', 969082293, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'author', 1, 'au', 969082293, 'au')[0m
[1m[35m (22.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082293, '175abbb48dfd0c9615fe9ff3fcc123a1')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:02', 969082014, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082014 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f348e3d03adda01243f8f4a74c00f05f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:02', 'title')
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082294, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'title', 1, 'title', 969082294, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'author', 1, 'au', 969082294, 'au')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082294, 'f348e3d03adda01243f8f4a74c00f05f')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:02', 969082015, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082015 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66811e667859bf8d11080f13eddd686f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:02', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082295, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'title', 1, 'title', 969082295, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'author', 1, 'au', 969082295, 'au')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082295, '66811e667859bf8d11080f13eddd686f')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:02', 969082016, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082016 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082016 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:02', NULL, 969082016, 'test_bd', 'successful', '2015-02-12 20:38:02')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:02' WHERE `dispatched_services`.`id` = 2175[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082016[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6d3a4fc03da3f49bcd10ba027063c61' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:02', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082296, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'title', 1, 'title', 969082296, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'author', 1, 'au', 969082296, 'au')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082296, 'c6d3a4fc03da3f49bcd10ba027063c61')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:02', 969082017, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.5ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cec42504863eb331307fc9e3aff3707' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:02', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'format', 'journal', 969082297, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:02', 'isbn', 1, '9789810743734', 969082297, '9789810743734')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082297, '8cec42504863eb331307fc9e3aff3707')
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082018[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:03', NULL, 969082018, 'test_bd', 'queued', '2015-02-12 20:38:03')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:03' WHERE `dispatched_services`.`id` = 2176
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082018 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082297)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082297)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082018) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082018)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082018 AND `dispatched_services`.`id` = 2176 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError Don't recognize field code `max_title_words`. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:03' WHERE `dispatched_services`.`id` = 2176[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082018 LIMIT 1[0m
[1m[35mDispatchedService Load (86.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082297 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082297)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082018 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082018 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (137.3ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082297[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (11.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.0ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082018[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 2349ms (Views: 2047.2ms | ActiveRecord: 139.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:38:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd88250abdf7b84a06e754800e57da41' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:05', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'format', 'book', 969082298, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'genre', 1, 'book', 969082298, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'author', 1, 'smith', 969082298, 'Smith')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'title', 1, 'some book', 969082298, 'Some Book')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:38:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082298, 'cd88250abdf7b84a06e754800e57da41')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082019[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:05', NULL, 969082019, 'BorrowDirect', 'queued', '2015-02-12 20:38:05')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2177
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082019 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082298)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082298)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082019) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082019)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082019 AND `dispatched_services`.`id` = 2177 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2177[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082019 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082298 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082298)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082019 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082019 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082298
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082019
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 216ms (Views: 19.8ms | ActiveRecord: 141.4ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:38:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9a777901160728802e6fb7b0f56aa3cf' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:05', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'format', 'journal', 969082299, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'genre', 1, 'article', 969082299, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'title', 1, 'foo', 969082299, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'author', 1, 'bar', 969082299, 'bar')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:38:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082299, '9a777901160728802e6fb7b0f56aa3cf')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082020
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:05', NULL, 969082020, 'BorrowDirect', 'queued', '2015-02-12 20:38:05')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2178[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082020 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082299)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082299)[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082020) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082020)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082020 AND `dispatched_services`.`id` = 2178 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2178
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082020 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082299 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082299)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082020 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082020 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082299[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (38.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082020[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 241ms (Views: 18.3ms | ActiveRecord: 152.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b91b0b8aea25fa9433ca5e8802085b41' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:05', 'foo')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'format', 'book', 969082300, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'genre', 1, 'book', 969082300, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'title', 1, 'foo', 969082300, 'foo')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082300, 'b91b0b8aea25fa9433ca5e8802085b41')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082021 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:05', NULL, 969082021, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:38:05')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:05' WHERE `dispatched_services`.`id` = 2179
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082021" for 127.0.0.1 at 2015-02-12 15:38:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082021"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082021 LIMIT 1
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082300 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082300)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082021
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082021
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082021 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082021 [["request_id", 969082021]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082300 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082300)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082021 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082021 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082300[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082021[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 18.2ms | ActiveRecord: 47.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '19b096c9051c34c7e1fb38537be24f78' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:05', '9789810743734')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'format', 'journal', 969082301, 'journal')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:05', 'isbn', 1, '9789810743734', 969082301, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082301, '19b096c9051c34c7e1fb38537be24f78')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082022[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082022, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2180
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082022 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082301)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082301)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082022) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082022)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082022 AND `dispatched_services`.`id` = 2180 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2180[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082022 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082301 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082301)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082022 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082022 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082301
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082022
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 202ms (Views: 20.1ms | ActiveRecord: 130.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:38:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e25d0e23b26be311b01f56aad4f4e1c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:06', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'format', 'journal', 969082302, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'isbn', 1, '0109836413', 969082302, '0109836413')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082302, '2e25d0e23b26be311b01f56aad4f4e1c')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082023
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082023, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2181[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082023 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082302)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082302)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082023) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082023)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082023 AND `dispatched_services`.`id` = 2181 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2181
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082023 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082302 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082302)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082023 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082023 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082302[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082023[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 205ms (Views: 19.4ms | ActiveRecord: 130.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c936837929d33f16a6ea0759f39efd9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:06', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'format', 'journal', 969082303, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'isbn', 1, '9789810743734', 969082303, '9789810743734')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082303, '9c936837929d33f16a6ea0759f39efd9')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082024[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082024, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2182
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082024 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082303)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082303)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082024) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082024)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082024 AND `dispatched_services`.`id` = 2182 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2182[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082024 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082303 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082303)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082024 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082024 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082303
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082024
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 19.2ms | ActiveRecord: 133.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '498e9fd53b199e2c44fe600416635b27' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:06', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'format', 'journal', 969082304, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'isbn', 1, '9789810743734', 969082304, '9789810743734')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082304, '498e9fd53b199e2c44fe600416635b27')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082025
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082025, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2183[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082025 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082304)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082304)[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082025) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082025)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082025 AND `dispatched_services`.`id` = 2183 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2183
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082025 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082304 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082304)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082025 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082025 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082304[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082025[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 204ms (Views: 20.3ms | ActiveRecord: 131.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07b82291a1e96dc9efa15da7b8538881' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:06', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'format', 'journal', 969082305, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:06', 'isbn', 1, '9789810743734', 969082305, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082305, '07b82291a1e96dc9efa15da7b8538881')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082026[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:06', NULL, 969082026, 'BorrowDirect', 'queued', '2015-02-12 20:38:06')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:06' WHERE `dispatched_services`.`id` = 2184
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082026 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082305)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082305)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082026) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082026)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082026 AND `dispatched_services`.`id` = 2184 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Don't recognize field code `max_title_words`. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in `block in build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `each_pair'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in `build_query_with'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in `query_url_with'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Don\'t recognize field code `max_title_words`\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:39:in\n `block in build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `each_pair\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:34:in\n `build_query_with\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:50:in\n `query_url_with\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:07' WHERE `dispatched_services`.`id` = 2184[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082026 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082305 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082305)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082026 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082026 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082305
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082026
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 202ms (Views: 19.8ms | ActiveRecord: 129.6ms)
[1m[35m (0.7ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 45ms (Views: 44.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5737d5bd5d8387546c158d6386c85680' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082306, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '121212', 969082306, '121212')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082306, '5737d5bd5d8387546c158d6386c85680')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082027"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082027 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082027 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082027
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082027, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082027\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082306 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082306)
Redirected to http://test.host/resolve?umlaut.request_id=969082027&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 22.7ms)
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c21a67d6f37dc47ee0891d8e74461df3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082307, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '121212', 969082307, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082307, 'c21a67d6f37dc47ee0891d8e74461df3')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082028, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082028"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082028 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082028 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013039
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082028, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013039\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082307 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082307)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082028&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4ecd78502cbcf347d50f5d5e090f1d7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082308, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '121212', 969082308, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082308, 'a4ecd78502cbcf347d50f5d5e090f1d7')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082029, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082029"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082029 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082029 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082029 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:07', NULL, 969082029, 'BorrowDirect', 'in_progress', '2015-02-12 20:38:07')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:07' WHERE `dispatched_services`.`id` = 2185[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082029, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082308 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082308)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082029&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 67ms (ActiveRecord: 56.4ms)
[1m[35mDispatchedService Load (4.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082029
[1m[36mServiceResponse Load (6.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082029 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082029 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:07' WHERE `dispatched_services`.`id` = 2185
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013042[0m
[1m[35m (14.2ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f045b695b7011619b957b31cb78d0a0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082309, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '121212', 969082309, '121212')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082309, '4f045b695b7011619b957b31cb78d0a0')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082030"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082030 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082030 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:07', 969082030, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082309 LIMIT 1[0m
[1m[35mReferentValue Load (1.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082309)
Redirected to http://test.host/resolve?umlaut.request_id=969082030&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.5ms)
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a63f5223f883194d112e1d2fbf07d81b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082310, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '9789810743734', 969082310, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082310, 'a63f5223f883194d112e1d2fbf07d81b')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082031 ORDER BY id ASC
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd7f96a4a3ee71ce72494a4e584f132a9' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:38:07', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'book', 969082311, 'book')
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'auinit', 1, 'eh', 969082311, 'EH')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'aulast', 1, 'lenneberg', 969082311, 'Lenneberg')
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'title', 1, 'biological foundations of language', 969082311, 'Biological foundations of language')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'genre', 1, 'book', 969082311, 'book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'date', 1, '1967', 969082311, '1967')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082311, 'info:sid/google', 'd7f96a4a3ee71ce72494a4e584f132a9')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082032 ORDER BY id ASC
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66e2d5422fcf10c6f4ba5281210bdd6a' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:38:07', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082312, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'auinit', 1, 'rd', 969082312, 'RD')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'aulast', 1, 'kaplan', 969082312, 'Kaplan')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'atitle', 1, 'the coming anarchy', 969082312, 'The coming anarchy')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'title', 1, 'the atlantic monthly', 969082312, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'volume', 1, '273', 969082312, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'issue', 1, '2', 969082312, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'date', 1, '1994', 969082312, '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'spage', 1, '44', 969082312, '44')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'issn', 1, '1072-7825', 969082312, '1072-7825')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082312, 'info:sid/google', '66e2d5422fcf10c6f4ba5281210bdd6a')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082033 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:07', NULL, 969082033, 'test_bd', 'successful', '2015-02-12 20:38:07')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:07' WHERE `dispatched_services`.`id` = 2186[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082033[0m
[1m[35mServiceResponse Exists (1.5ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082033 LIMIT 1
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1099b589ceff6bbd4fbf227db81a178' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:07', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082313, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082313, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'aulast', 1, 'grimes', 969082313, 'Grimes')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082313, 'a1099b589ceff6bbd4fbf227db81a178')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb39ad81cca9404547c1737e28f7fb3a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082314, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '9789810743734', 969082314, '9789810743734')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082314, 'eb39ad81cca9404547c1737e28f7fb3a')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082035 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c7e8d5c95fc5082abe483860d393e183' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082315, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '9789810743734', 969082315, '9789810743734')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082315, 'c7e8d5c95fc5082abe483860d393e183')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082036 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1fbf21e598b2380c71a9ff1484e22a96' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:07', '0109836413')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'format', 'journal', 969082316, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:07', 'isbn', 1, '0109836413', 969082316, '0109836413')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:38:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082316, '1fbf21e598b2380c71a9ff1484e22a96')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082037 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f56d9ae22145baf46f90187c49e0b617' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:08', '000000000')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:08', 'format', 'journal', 969082317, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:08', 'isbn', 1, '000000000', 969082317, '000000000')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:38:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082317, 'f56d9ae22145baf46f90187c49e0b617')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082038 ORDER BY id ASC
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecfa0b7e33774245059bee0e52d663d4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:54', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'format', 'journal', 969082318, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'isbn', 1, '9789810743734', 969082318, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082318, 'ecfa0b7e33774245059bee0e52d663d4')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082039
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:54', NULL, 969082039, 'test_bd', 'queued', '2015-02-12 20:38:54')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:54' WHERE `dispatched_services`.`id` = 2187[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082039 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082318)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082318)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082039) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082039)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082039 AND `dispatched_services`.`id` = 2187 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:54' WHERE `dispatched_services`.`id` = 2187
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082039 LIMIT 1
[1m[36mDispatchedService Load (7.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082318 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082318)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082039 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (34.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (35.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082039 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (90.1ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082318
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082039
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 600ms (Views: 136.2ms | ActiveRecord: 157.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:38:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2cb1ffe777adef69b52cbb479604426' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:54', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'format', 'book', 969082319, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'genre', 1, 'book', 969082319, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'author', 1, 'smith', 969082319, 'Smith')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:54', 'title', 1, 'some book', 969082319, 'Some Book')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:38:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082319, 'f2cb1ffe777adef69b52cbb479604426')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082040
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:54', NULL, 969082040, 'BorrowDirect', 'queued', '2015-02-12 20:38:54')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:54' WHERE `dispatched_services`.`id` = 2188[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082040 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082319)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082319)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082040) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082040)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082040 AND `dispatched_services`.`id` = 2188 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082040, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2188[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082040 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082319 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082319)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082040 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082040 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082319
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082040
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 256ms (Views: 22.8ms | ActiveRecord: 130.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:38:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f343a862c5c447bae9d6d095fde4564' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:55', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'format', 'journal', 969082320, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'genre', 1, 'article', 969082320, 'article')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'title', 1, 'foo', 969082320, 'foo')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'author', 1, 'bar', 969082320, 'bar')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:38:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082320, '9f343a862c5c447bae9d6d095fde4564')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082041
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:55', NULL, 969082041, 'BorrowDirect', 'queued', '2015-02-12 20:38:55')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2189[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082041 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082320)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082320)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082041) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082041)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082041 AND `dispatched_services`.`id` = 2189 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2189
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082041 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082320 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082320)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082041 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082041 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (2.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082320[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082041[0m
[1m[35m (15.9ms)[0m COMMIT
Completed 200 OK in 207ms (Views: 17.1ms | ActiveRecord: 118.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '68e82bfbe09768f7f255b46542b12296' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:55', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'format', 'book', 969082321, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'genre', 1, 'book', 969082321, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'title', 1, 'foo', 969082321, 'foo')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:38:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082321, '68e82bfbe09768f7f255b46542b12296')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082042 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:55', NULL, 969082042, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:38:55')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2190
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082042" for 127.0.0.1 at 2015-02-12 15:38:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082042"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082042 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082321 LIMIT 1[0m
[1m[35mReferentValue Load (1.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082321)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082042
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082042
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082042 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082042 [["request_id", 969082042]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082321 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082321)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082042 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082042 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082321[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082042[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 18.4ms | ActiveRecord: 47.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b05ee76819416f0cc697b6a38948f1a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:55', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'format', 'journal', 969082322, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'isbn', 1, '9789810743734', 969082322, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082322, '3b05ee76819416f0cc697b6a38948f1a')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082043[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:55', NULL, 969082043, 'BorrowDirect', 'queued', '2015-02-12 20:38:55')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2191
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082043 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082322)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082322)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082043) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082043)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082043 AND `dispatched_services`.`id` = 2191 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2191[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082043 LIMIT 1[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043[0m
[1m[35mReferent Load (2.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082322 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082322)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082043 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (2.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082043 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082322
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082043
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 207ms (Views: 19.4ms | ActiveRecord: 135.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:38:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7b0abf2a5bf8d4053efd2c82a2a32eb' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:55', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'format', 'journal', 969082323, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:55', 'isbn', 1, '0109836413', 969082323, '0109836413')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:38:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082323, 'e7b0abf2a5bf8d4053efd2c82a2a32eb')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082044
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:55', NULL, 969082044, 'BorrowDirect', 'queued', '2015-02-12 20:38:55')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2192[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082044 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082323)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082323)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082044) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082044)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082044 AND `dispatched_services`.`id` = 2192 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:55' WHERE `dispatched_services`.`id` = 2192
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082044 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082323 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082323)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082044 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082044 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082323[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082044[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 208ms (Views: 18.6ms | ActiveRecord: 136.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd41260f5781137550c426b42004bcf20' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:56', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082324, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'isbn', 1, '9789810743734', 969082324, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082324, 'd41260f5781137550c426b42004bcf20')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082045[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082045, 'BorrowDirect', 'queued', '2015-02-12 20:38:56')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2193
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082045 LIMIT 1
[1m[36mReferent Load (2.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082324)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082324)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082045) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082045)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082045 AND `dispatched_services`.`id` = 2193 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2193[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082045 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082324 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082324)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082045 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082045 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (42.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (43.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082324
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082045
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 255ms (Views: 58.3ms | ActiveRecord: 142.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9fda5b78825dec0cbfc031f3699abdd6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:56', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082325, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'isbn', 1, '9789810743734', 969082325, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082325, '9fda5b78825dec0cbfc031f3699abdd6')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082046
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082046, 'BorrowDirect', 'queued', '2015-02-12 20:38:56')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2194[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082046 LIMIT 1[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082325)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082325)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082046) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082046)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082046 AND `dispatched_services`.`id` = 2194 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2194
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082046 LIMIT 1
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082325 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082325)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082046 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082046 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.6ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082325[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082046[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 207ms (Views: 19.2ms | ActiveRecord: 134.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:38:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5183485e140a81e93e6aca049676fc51' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:56', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082326, 'journal')
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'isbn', 1, '9789810743734', 969082326, '9789810743734')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:56', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082326, '5183485e140a81e93e6aca049676fc51')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082047[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082047, 'BorrowDirect', 'queued', '2015-02-12 20:38:56')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2195
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082047 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082326)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082326)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082047) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082047)
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082047 AND `dispatched_services`.`id` = 2195 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2195[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082047 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.7ms)
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082326 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082326)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082047 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082047 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (2.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082326
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082047
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 212ms (Views: 18.3ms | ActiveRecord: 139.9ms)
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c177cb8c491c3c5ec81820e4f614a14' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:56', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082327, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'title', 1, 'title', 969082327, 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'author', 1, 'au', 969082327, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082327, '6c177cb8c491c3c5ec81820e4f614a14')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:56', 969082048, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082048 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082048 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082048, 'test_bd', 'successful', '2015-02-12 20:38:56')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2196[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082048[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0f2f24c09b65aa1c6b56f65e0e298f6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:56', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082328, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'title', 1, 'title', 969082328, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'author', 1, 'au', 969082328, 'au')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082328, 'd0f2f24c09b65aa1c6b56f65e0e298f6')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:56', 969082049, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082049 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:56', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082049, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082049 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:56', NULL, 969082049, 'test_bd', 'successful', '2015-02-12 20:38:56')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:56' WHERE `dispatched_services`.`id` = 2197
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082049
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d0b0c82ab909c3775b388dbe2756452' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:56', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'format', 'journal', 969082329, 'journal')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'title', 1, 'title', 969082329, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:56', 'author', 1, 'au', 969082329, 'au')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082329, '4d0b0c82ab909c3775b388dbe2756452')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:56', 969082050, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082050 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082050, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082050 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:57', NULL, 969082050, 'test_bd', 'successful', '2015-02-12 20:38:57')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2198[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082050[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 2.0ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (3.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f03bc552cfe03967fb5950b57cfaa038' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082330, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '121212', 969082330, '121212')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082330, 'f03bc552cfe03967fb5950b57cfaa038')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082051"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082051 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082051 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082051
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082051, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082051\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082330 LIMIT 1[0m
[1m[35mReferentValue Load (2.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082330)
Redirected to http://test.host/resolve?umlaut.request_id=969082051&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 23.7ms)
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f31f95c43c1e5536f7ae80142914c37' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082331, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '121212', 969082331, '121212')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082331, '4f31f95c43c1e5536f7ae80142914c37')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082052, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082052"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082052 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082052 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013051
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082052, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013051\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082331 LIMIT 1
[1m[36mReferentValue Load (1.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082331)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082052&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c346248b67cf3da29778daa64e4c387' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082332, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '121212', 969082332, '121212')
[1m[36m (22.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082332, '8c346248b67cf3da29778daa64e4c387')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082053, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082053"}
[1m[35mRequest Load (2.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082053 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082053 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082053 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:57', NULL, 969082053, 'BorrowDirect', 'in_progress', '2015-02-12 20:38:57')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2199[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082053, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082332 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082332)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082053&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 73ms (ActiveRecord: 62.8ms)
[1m[35mDispatchedService Load (3.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082053
[1m[36mServiceResponse Load (6.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082053 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082053 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2199
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013054[0m
[1m[35m (15.0ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b7d544732ac5603c246559d55559f1f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '121212')[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082333, 'journal')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '121212', 969082333, '121212')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082333, '9b7d544732ac5603c246559d55559f1f')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082054"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082054 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082054 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:57', 969082054, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082333 LIMIT 1[0m
[1m[35mReferentValue Load (1.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082333)
Redirected to http://test.host/resolve?umlaut.request_id=969082054&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A38%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.1ms)
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'baddc6cdefe762817501744db88efbd9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:57', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082334, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082334, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'aulast', 1, 'grimes', 969082334, 'Grimes')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082334, 'baddc6cdefe762817501744db88efbd9')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082055, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082055 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b588d1789a4806eccbb2882f065589d5' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:38:57', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082335, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'auinit', 1, 'rd', 969082335, 'RD')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'aulast', 1, 'kaplan', 969082335, 'Kaplan')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'atitle', 1, 'the coming anarchy', 969082335, 'The coming anarchy')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'title', 1, 'the atlantic monthly', 969082335, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'volume', 1, '273', 969082335, '273')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'issue', 1, '2', 969082335, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'date', 1, '1994', 969082335, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'spage', 1, '44', 969082335, '44')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'issn', 1, '1072-7825', 969082335, '1072-7825')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082335, 'info:sid/google', 'b588d1789a4806eccbb2882f065589d5')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082056 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:57', NULL, 969082056, 'test_bd', 'successful', '2015-02-12 20:38:57')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2200[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082056[0m
[1m[35mServiceResponse Exists (3.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082056 LIMIT 1
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5dcf9545e72b6e7777fc000cd3818a9c' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:38:57', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'book', 969082336, 'book')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'auinit', 1, 'eh', 969082336, 'EH')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'aulast', 1, 'lenneberg', 969082336, 'Lenneberg')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'title', 1, 'biological foundations of language', 969082336, 'Biological foundations of language')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'genre', 1, 'book', 969082336, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'date', 1, '1967', 969082336, '1967')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082336, 'info:sid/google', '5dcf9545e72b6e7777fc000cd3818a9c')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082057 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:57', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082057, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082057 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:57', NULL, 969082057, 'test_bd', 'successful', '2015-02-12 20:38:57')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:57' WHERE `dispatched_services`.`id` = 2201[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (2.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082057[0m
[1m[35mRequest Load (2.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3e625eb4565ea64e436a2ec0ffac388a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082337, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '9789810743734', 969082337, '9789810743734')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082337, '3e625eb4565ea64e436a2ec0ffac388a')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082058 ORDER BY id ASC[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37c07c571874c40d352627be09f1605e' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:57', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'format', 'journal', 969082338, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:57', 'isbn', 1, '000000000', 969082338, '000000000')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082338, '37c07c571874c40d352627be09f1605e')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082059 ORDER BY id ASC[0m
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e5991d6f9a00eb63bca000087c1b131' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:58', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'format', 'journal', 969082339, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'isbn', 1, '0109836413', 969082339, '0109836413')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082339, '7e5991d6f9a00eb63bca000087c1b131')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082060 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0ffce009aa7869008c819c32a4dafdc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:58', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'format', 'journal', 969082340, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'isbn', 1, '9789810743734', 969082340, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082340, 'd0ffce009aa7869008c819c32a4dafdc')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082061 ORDER BY id ASC[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '612f597818785b03957e0bda31e8b2b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:38:58', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'format', 'journal', 969082341, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'isbn', 1, '9789810743734', 969082341, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082341, '612f597818785b03957e0bda31e8b2b3')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082062 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfc0528fba181b8ca5bfbdb0115265f5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:38:58', 'title')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'format', 'journal', 969082342, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'title', 1, 'title', 969082342, 'title')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:38:58', 'author', 1, 'au', 969082342, 'au')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:38:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082342, 'bfc0528fba181b8ca5bfbdb0115265f5')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:38:58', 969082063, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:38:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082063, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082063 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:38:58', NULL, 969082063, 'test_bd', 'successful', '2015-02-12 20:38:58')
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:38:58' WHERE `dispatched_services`.`id` = 2202[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082063[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082063 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a5500ea44bd6667fc055c39a7ae63ac' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:34', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'format', 'journal', 969082343, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'title', 1, 'title', 969082343, 'title')
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'author', 1, 'au', 969082343, 'au')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:45:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082343, '1a5500ea44bd6667fc055c39a7ae63ac')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:34', 969082064, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082064, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082064 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:34', NULL, 969082064, 'test_bd', 'successful', '2015-02-12 20:45:34')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:34' WHERE `dispatched_services`.`id` = 2203[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082064[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082064 ORDER BY id ASC
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7dec79cbddd9709c73bf0356ec99c528' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:34', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'format', 'journal', 969082344, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'isbn', 1, '9789810743734', 969082344, '9789810743734')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082344, '7dec79cbddd9709c73bf0356ec99c528')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082065[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:34', NULL, 969082065, 'test_bd', 'queued', '2015-02-12 20:45:34')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:34' WHERE `dispatched_services`.`id` = 2204
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082065 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082344)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082344)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082065) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082065)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (23.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082065 AND `dispatched_services`.`id` = 2204 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:34' WHERE `dispatched_services`.`id` = 2204[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082065 LIMIT 1[0m
[1m[35mDispatchedService Load (37.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082344 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082344)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.0ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082065 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082065 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (88.5ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082344[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082065[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 459ms (Views: 136.2ms | ActiveRecord: 135.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:45:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ef572a7e0780a87458c528dc6d95ff89' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:34', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'format', 'book', 969082345, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'genre', 1, 'book', 969082345, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'author', 1, 'smith', 969082345, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:34', 'title', 1, 'some book', 969082345, 'Some Book')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:45:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082345, 'ef572a7e0780a87458c528dc6d95ff89')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082066[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082066, 'BorrowDirect', 'queued', '2015-02-12 20:45:35')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2205
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082066 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082345)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082345)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082066) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082066)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082066 AND `dispatched_services`.`id` = 2205 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082066, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2205
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082066 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082345 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082345)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082066 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082066 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082345[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082066[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 250ms (Views: 24.3ms | ActiveRecord: 129.4ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:45:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98b9634ae86001563e57bb39cd411041' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:35', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'format', 'journal', 969082346, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'genre', 1, 'article', 969082346, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'title', 1, 'foo', 969082346, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'author', 1, 'bar', 969082346, 'bar')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:45:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082346, '98b9634ae86001563e57bb39cd411041')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082067[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082067, 'BorrowDirect', 'queued', '2015-02-12 20:45:35')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2206
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082067 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082346)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082346)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082067) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082067)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082067 AND `dispatched_services`.`id` = 2206 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2206[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082067 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082346 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082346)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082067 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082067 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082346
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082067
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 217ms (Views: 17.2ms | ActiveRecord: 126.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '910f75b501c510f4319ef524737ae5f1' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (37.6ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:35', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'format', 'book', 969082347, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'genre', 1, 'book', 969082347, 'book')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'title', 1, 'foo', 969082347, 'foo')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:45:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082347, '910f75b501c510f4319ef524737ae5f1')
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082068 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082068, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:45:35')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2207[0m
[1m[35m (15.8ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082068" for 127.0.0.1 at 2015-02-12 15:45:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082068"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082068 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082347 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082347)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082068[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082068[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082068 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082068[0m [["request_id", 969082068]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082347 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082347)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082068 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082068 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082347
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082068
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 75ms (Views: 18.1ms | ActiveRecord: 49.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'be7e038d641f01a5d573a532d977c486' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:35', '9789810743734')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'format', 'journal', 969082348, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'isbn', 1, '9789810743734', 969082348, '9789810743734')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082348, 'be7e038d641f01a5d573a532d977c486')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082069
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082069, 'BorrowDirect', 'queued', '2015-02-12 20:45:35')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2208[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082069 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082348)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082348)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082069) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082069)[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082069 AND `dispatched_services`.`id` = 2208 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:35' WHERE `dispatched_services`.`id` = 2208
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082069 LIMIT 1
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082348 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082348)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082069 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082069 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082348[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082069[0m
[1m[35m (15.5ms)[0m COMMIT
Completed 200 OK in 215ms (Views: 20.4ms | ActiveRecord: 138.3ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:45:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b563ea973da01dcabd7af99dd7cce9fa' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:35', '0109836413')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'format', 'journal', 969082349, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:35', 'isbn', 1, '0109836413', 969082349, '0109836413')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:45:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082349, 'b563ea973da01dcabd7af99dd7cce9fa')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082070[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:35', NULL, 969082070, 'BorrowDirect', 'queued', '2015-02-12 20:45:35')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2209
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082070 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082349)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082349)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082070) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082070)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082070 AND `dispatched_services`.`id` = 2209 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (2.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2209[0m
[1m[35m (21.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082070 LIMIT 1[0m
[1m[35mDispatchedService Load (2.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.4ms)
[1m[36mDispatchedService Load (2.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082349 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082349)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082070 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082070 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082349
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082070
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 222ms (Views: 19.9ms | ActiveRecord: 148.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '567b3484598a95fd302c2acb1b155368' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:36', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'format', 'journal', 969082350, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'isbn', 1, '9789810743734', 969082350, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082350, '567b3484598a95fd302c2acb1b155368')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082071
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:36', NULL, 969082071, 'BorrowDirect', 'queued', '2015-02-12 20:45:36')
[1m[36m (21.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2210[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082071 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082350)
[1m[36mReferentValue Load (1.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082350)[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082071) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082071)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082071 AND `dispatched_services`.`id` = 2210 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2210
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082071 LIMIT 1
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082350 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082350)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082071 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082071 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082350[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082071[0m
[1m[35m (18.2ms)[0m COMMIT
Completed 200 OK in 261ms (Views: 18.8ms | ActiveRecord: 149.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e6df3093edfeb7544ff929e738ec644' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:36', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'format', 'journal', 969082351, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'isbn', 1, '9789810743734', 969082351, '9789810743734')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082351, '7e6df3093edfeb7544ff929e738ec644')
[1m[36m (27.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082072[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:36', NULL, 969082072, 'BorrowDirect', 'queued', '2015-02-12 20:45:36')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2211
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082072 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082351)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082351)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082072) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082072)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082072 AND `dispatched_services`.`id` = 2211 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2211[0m
[1m[35m (25.9ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082072 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082351 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082351)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082072 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082072 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082351
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082072
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 236ms (Views: 18.9ms | ActiveRecord: 164.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:45:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66c03471ba849d2c280e1c26547f034e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:36', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'format', 'journal', 969082352, 'journal')[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'isbn', 1, '9789810743734', 969082352, '9789810743734')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082352, '66c03471ba849d2c280e1c26547f034e')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082073
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:36', NULL, 969082073, 'BorrowDirect', 'queued', '2015-02-12 20:45:36')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2212[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082073 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082352)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082352)[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082073) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082073)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082073 AND `dispatched_services`.`id` = 2212 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, ArgumentError Need at least a :title param. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:144:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: ArgumentError\n:message: Need at least a :title param\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:67:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:144:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:36' WHERE `dispatched_services`.`id` = 2212
[1m[36m (25.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082073 LIMIT 1
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082352 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082352)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082073 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082073 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082352[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082073[0m
[1m[35m (14.1ms)[0m COMMIT
Completed 200 OK in 233ms (Views: 19.7ms | ActiveRecord: 158.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 44ms (Views: 43.3ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3882aaca2b3a63612e53a01ccd43f659' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:36', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'format', 'journal', 969082353, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:36', 'isbn', 1, '121212', 969082353, '121212')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082353, '3882aaca2b3a63612e53a01ccd43f659')[0m
[1m[35m (19.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082074"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082074 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082074 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969082074
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082074, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082074\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082353 LIMIT 1
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082353)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082074&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A45%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 36ms (ActiveRecord: 29.6ms)
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9bf1aca778ea01b2653f122875a85a44' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082354, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '121212', 969082354, '121212')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082354, '9bf1aca778ea01b2653f122875a85a44')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082075, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082075"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082075 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082075 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013064
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082075, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013064\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082354 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082354)
Redirected to http://test.host/resolve?umlaut.request_id=969082075&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A45%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 24.1ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8564f68a653005e5d585d7e237870383' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082355, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '121212', 969082355, '121212')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082355, '8564f68a653005e5d585d7e237870383')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082076, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082076"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082076 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082076 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082076 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:37', NULL, 969082076, 'BorrowDirect', 'in_progress', '2015-02-12 20:45:37')[0m
[1m[35m (24.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:37' WHERE `dispatched_services`.`id` = 2213
[1m[36m (34.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082076, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (23.6ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082355 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082355)
Redirected to http://test.host/resolve?umlaut.request_id=969082076&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A45%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 107ms (ActiveRecord: 96.7ms)
[1m[36mDispatchedService Load (4.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082076[0m
[1m[35mServiceResponse Load (5.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082076 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082076 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:45:37' WHERE `dispatched_services`.`id` = 2213[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013067
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fc70ac454b76df243bec972674df5e7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '121212')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082356, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '121212', 969082356, '121212')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082356, '8fc70ac454b76df243bec972674df5e7')[0m
[1m[35m (14.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082077"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082077 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082077 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:37', 969082077, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082356 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082356)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082077&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A45%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.6ms)
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b1a92c1429c433601aa31a83050a622' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082357, 'journal')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '9789810743734', 969082357, '9789810743734')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082357, '1b1a92c1429c433601aa31a83050a622')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082078 ORDER BY id ASC[0m
[1m[35mRequest Load (2.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '957ca886a279271248d5034bb31190fa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082358, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '9789810743734', 969082358, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082358, '957ca886a279271248d5034bb31190fa')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082079 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29ba9354f67d918f0c8276c00ad32200' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '000000000')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082359, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '000000000', 969082359, '000000000')
[1m[36m (47.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082359, '29ba9354f67d918f0c8276c00ad32200')[0m
[1m[35m (27.3ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082080 ORDER BY id ASC[0m
[1m[35mRequest Load (2.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bd9e95a843479832566dd6aff3ffcdd' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '0109836413')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082360, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '0109836413', 969082360, '0109836413')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082360, '6bd9e95a843479832566dd6aff3ffcdd')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082081 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18ec157bea5d459c80a3a43847a3e83c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:45:37', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082361, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'isbn', 1, '9789810743734', 969082361, '9789810743734')
[1m[36m (25.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082361, '18ec157bea5d459c80a3a43847a3e83c')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082082 ORDER BY id ASC[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '68924b1eecdada73d00156af2af7a946' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:37', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082362, 'journal')[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082362, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'aulast', 1, 'grimes', 969082362, 'Grimes')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082362, '68924b1eecdada73d00156af2af7a946')
[1m[36m (24.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082083, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082083 ORDER BY id ASC[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4d9552c779a4436f108fd5a3083bf19' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:45:37', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'format', 'journal', 969082363, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'auinit', 1, 'rd', 969082363, 'RD')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'aulast', 1, 'kaplan', 969082363, 'Kaplan')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'atitle', 1, 'the coming anarchy', 969082363, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'title', 1, 'the atlantic monthly', 969082363, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'volume', 1, '273', 969082363, '273')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'issue', 1, '2', 969082363, '2')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'date', 1, '1994', 969082363, '1994')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'spage', 1, '44', 969082363, '44')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:37', 'issn', 1, '1072-7825', 969082363, '1072-7825')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:45:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082363, 'info:sid/google', 'b4d9552c779a4436f108fd5a3083bf19')[0m
[1m[35m (39.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082084 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:37', NULL, 969082084, 'test_bd', 'successful', '2015-02-12 20:45:37')[0m
[1m[35m (23.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2214
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082084
[1m[36mServiceResponse Exists (1.7ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082084 LIMIT 1[0m
[1m[35mRequest Load (2.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76222d6371bb08a84d0270e0fc0c3301' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:45:38', 'biological foundations of language', '1967')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'format', 'book', 969082364, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'auinit', 1, 'eh', 969082364, 'EH')
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'aulast', 1, 'lenneberg', 969082364, 'Lenneberg')[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'title', 1, 'biological foundations of language', 969082364, 'Biological foundations of language')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'genre', 1, 'book', 969082364, 'book')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'date', 1, '1967', 969082364, '1967')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:45:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082364, 'info:sid/google', '76222d6371bb08a84d0270e0fc0c3301')[0m
[1m[35m (25.2ms)[0m COMMIT
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082085 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082085, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (23.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082085 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:38', NULL, 969082085, 'test_bd', 'successful', '2015-02-12 20:45:38')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2215
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082085
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b17049c2a9fa91cff100a8861778e1ec' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:38', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'format', 'journal', 969082365, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'title', 1, 'title', 969082365, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'author', 1, 'au', 969082365, 'au')
[1m[36m (23.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:45:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082365, 'b17049c2a9fa91cff100a8861778e1ec')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:38', 969082086, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082086 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082086 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:38', NULL, 969082086, 'test_bd', 'successful', '2015-02-12 20:45:38')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2216
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082086
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3edad09810ac80e70e42d41fb6c96ba6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:38', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'format', 'journal', 969082366, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'title', 1, 'title', 969082366, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'author', 1, 'au', 969082366, 'au')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:45:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082366, '3edad09810ac80e70e42d41fb6c96ba6')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:38', 969082087, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082087 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082087, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082087 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:38', NULL, 969082087, 'test_bd', 'successful', '2015-02-12 20:45:38')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2217[0m
[1m[35m (20.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082087[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a4b9e2032cd813cf68cc2a641460192' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:45:38', 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'format', 'journal', 969082367, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'title', 1, 'title', 969082367, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:45:38', 'author', 1, 'au', 969082367, 'au')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:45:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082367, '3a4b9e2032cd813cf68cc2a641460192')
[1m[36m (31.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:45:38', 969082088, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082088 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 20:45:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082088, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082088 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:45:38', NULL, 969082088, 'test_bd', 'successful', '2015-02-12 20:45:38')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:45:38' WHERE `dispatched_services`.`id` = 2218
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082088
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ffbff8baede8fc3b0a6ab241f7c831f1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:29', '9789810743734')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:29', 'format', 'journal', 969082368, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:29', 'isbn', 1, '9789810743734', 969082368, '9789810743734')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082368, 'ffbff8baede8fc3b0a6ab241f7c831f1')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082089
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:29', NULL, 969082089, 'test_bd', 'queued', '2015-02-12 20:47:29')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:29' WHERE `dispatched_services`.`id` = 2219[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082089 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082368)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082368)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082089) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082089)[0m
[1m[35mDispatchedService Load (2.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082089 AND `dispatched_services`.`id` = 2219 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2219
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082089 LIMIT 1
[1m[36mDispatchedService Load (7.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082368 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082368)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082089 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (34.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082089 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (37.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (39.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (93.5ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082368
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082089
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 617ms (Views: 102.3ms | ActiveRecord: 211.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:47:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af199b3058cd8703f3163420662d8683' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:30', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'format', 'book', 969082369, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'genre', 1, 'book', 969082369, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'author', 1, 'smith', 969082369, 'Smith')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'title', 1, 'some book', 969082369, 'Some Book')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:47:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082369, 'af199b3058cd8703f3163420662d8683')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082090
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:30', NULL, 969082090, 'BorrowDirect', 'queued', '2015-02-12 20:47:30')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2220[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082090 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082369)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082369)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082090) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082090)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082090 AND `dispatched_services`.`id` = 2220 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2220
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082090 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082369 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082369)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082090 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082090 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082369[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082090[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 219ms (Views: 20.0ms | ActiveRecord: 142.7ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:47:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4b45dd9e5009570fe091c09753897121' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:30', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'format', 'journal', 969082370, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'genre', 1, 'article', 969082370, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'title', 1, 'foo', 969082370, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'author', 1, 'bar', 969082370, 'bar')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:47:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082370, '4b45dd9e5009570fe091c09753897121')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082091[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:30', NULL, 969082091, 'BorrowDirect', 'queued', '2015-02-12 20:47:30')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2221
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082091 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082370)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082370)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082091) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082091)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082091 AND `dispatched_services`.`id` = 2221 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2221[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082091 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082370 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082370)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082091 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082091 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082370
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082091
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 200ms (Views: 17.0ms | ActiveRecord: 113.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08961149ee6c52ab13132904d563c524' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:30', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'format', 'book', 969082371, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'genre', 1, 'book', 969082371, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'title', 1, 'foo', 969082371, 'foo')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:47:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082371, '08961149ee6c52ab13132904d563c524')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082092 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:30', NULL, 969082092, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:47:30')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:30' WHERE `dispatched_services`.`id` = 2222[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082092" for 127.0.0.1 at 2015-02-12 15:47:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082092"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082092 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082371 LIMIT 1
[1m[36mReferentValue Load (2.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082371)[0m
[1m[35m (3.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082092[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082092[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082092 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082092[0m [["request_id", 969082092]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082371 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082371)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082092 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082092 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082371
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082092
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 76ms (Views: 19.0ms | ActiveRecord: 48.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0a56bd8225927766f1fc789f95d98ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:30', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'format', 'journal', 969082372, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:30', 'isbn', 1, '9789810743734', 969082372, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082372, 'a0a56bd8225927766f1fc789f95d98ff')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082093
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:30', NULL, 969082093, 'BorrowDirect', 'queued', '2015-02-12 20:47:30')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2223[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082093 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082372)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082372)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082093) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082093)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082093 AND `dispatched_services`.`id` = 2223 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2223
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082093 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082372 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082372)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082093 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082093 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082372[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082093[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 201ms (Views: 19.0ms | ActiveRecord: 130.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:47:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9c34cb827e3b41b283d77446bb6e381' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:31', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'format', 'journal', 969082373, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'isbn', 1, '0109836413', 969082373, '0109836413')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:47:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082373, 'd9c34cb827e3b41b283d77446bb6e381')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082094[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:31', NULL, 969082094, 'BorrowDirect', 'queued', '2015-02-12 20:47:31')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2224
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082094 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082373)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082373)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082094) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082094)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082094 AND `dispatched_services`.`id` = 2224 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2224[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082094 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082373 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082373)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082094 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082094 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082373
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082094
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 203ms (Views: 18.4ms | ActiveRecord: 131.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2c13cb82033c3d8fa410de5bb6a84eb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:31', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'format', 'journal', 969082374, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'isbn', 1, '9789810743734', 969082374, '9789810743734')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082374, 'e2c13cb82033c3d8fa410de5bb6a84eb')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082095
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:31', NULL, 969082095, 'BorrowDirect', 'queued', '2015-02-12 20:47:31')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2225[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082095 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082374)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082374)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082095) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082095)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (55.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082095 AND `dispatched_services`.`id` = 2225 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2225
[1m[36m (53.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082095 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082374 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082374)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082095 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082095 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082374[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (4.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082095[0m
[1m[35m (30.4ms)[0m COMMIT
Completed 200 OK in 304ms (Views: 20.4ms | ActiveRecord: 190.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69c1d6f3a2f83016802ccdae2360c36d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:31', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'format', 'journal', 969082375, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'isbn', 1, '9789810743734', 969082375, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082375, '69c1d6f3a2f83016802ccdae2360c36d')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082096[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:31', NULL, 969082096, 'BorrowDirect', 'queued', '2015-02-12 20:47:31')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2226
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082096 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082375)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082375)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082096) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082096)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082096 AND `dispatched_services`.`id` = 2226 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:31' WHERE `dispatched_services`.`id` = 2226[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082096 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082375 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082375)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082096 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082096 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082375
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082096
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 249ms (Views: 19.3ms | ActiveRecord: 137.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:47:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b4f6f6cbd12311c31193532de1c97aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:31', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'format', 'journal', 969082376, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:31', 'isbn', 1, '9789810743734', 969082376, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082376, '8b4f6f6cbd12311c31193532de1c97aa')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082097
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:32', NULL, 969082097, 'BorrowDirect', 'queued', '2015-02-12 20:47:32')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:32' WHERE `dispatched_services`.`id` = 2227[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082097 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082376)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082376)[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082097) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082097)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082097 AND `dispatched_services`.`id` = 2227 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:148:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:148:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:32' WHERE `dispatched_services`.`id` = 2227
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082097 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082376 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082376)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082097 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082097 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082376[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082097[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 205ms (Views: 19.7ms | ActiveRecord: 135.2ms)
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '52ea3d689d14461207cba99ae66f18d2' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:47:32', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082377, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'auinit', 1, 'rd', 969082377, 'RD')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'aulast', 1, 'kaplan', 969082377, 'Kaplan')
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'atitle', 1, 'the coming anarchy', 969082377, 'The coming anarchy')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'the atlantic monthly', 969082377, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'volume', 1, '273', 969082377, '273')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'issue', 1, '2', 969082377, '2')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'date', 1, '1994', 969082377, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'spage', 1, '44', 969082377, '44')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'issn', 1, '1072-7825', 969082377, '1072-7825')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082377, 'info:sid/google', '52ea3d689d14461207cba99ae66f18d2')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082098 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:32', NULL, 969082098, 'test_bd', 'successful', '2015-02-12 20:47:32')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:32' WHERE `dispatched_services`.`id` = 2228[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082098[0m
[1m[35mServiceResponse Exists (1.4ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082098 LIMIT 1
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4953c4551aef697322219e7b320782be' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:47:32', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'book', 969082378, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'auinit', 1, 'eh', 969082378, 'EH')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'aulast', 1, 'lenneberg', 969082378, 'Lenneberg')
[1m[36mSQL (4.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'biological foundations of language', 969082378, 'Biological foundations of language')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'genre', 1, 'book', 969082378, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'date', 1, '1967', 969082378, '1967')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082378, 'info:sid/google', '4953c4551aef697322219e7b320782be')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082099 ORDER BY id ASC
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e7f141fa4c012e738f6acaa0aadd329' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:32', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082379, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082379, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'aulast', 1, 'grimes', 969082379, 'Grimes')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082379, '8e7f141fa4c012e738f6acaa0aadd329')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f5e9661143adc7ca405fca97030a892' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:32', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082380, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'isbn', 1, '9789810743734', 969082380, '9789810743734')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082380, '8f5e9661143adc7ca405fca97030a892')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082101 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05165363a6e2d6047bf2b9b651ddf932' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:32', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082381, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'title', 969082381, 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'author', 1, 'au', 969082381, 'au')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082381, '05165363a6e2d6047bf2b9b651ddf932')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:32', 969082102, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082102 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082102 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:32', NULL, 969082102, 'test_bd', 'successful', '2015-02-12 20:47:32')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:32' WHERE `dispatched_services`.`id` = 2229
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082102
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfc5e167f5cfdaeee0595c5d8c6bfc41' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:32', 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082382, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'title', 969082382, 'title')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'author', 1, 'au', 969082382, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082382, 'bfc5e167f5cfdaeee0595c5d8c6bfc41')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:32', 969082103, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082103 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd32cc23af6733dea50933772df48f25' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:32', 'title')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082383, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'title', 1, 'title', 969082383, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'author', 1, 'au', 969082383, 'au')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082383, 'dd32cc23af6733dea50933772df48f25')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:32', 969082104, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082104 ORDER BY id ASC
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c83d85377e815ed779fe25a851e0bc2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:32', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082384, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'isbn', 1, '9789810743734', 969082384, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082384, '6c83d85377e815ed779fe25a851e0bc2')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082105 ORDER BY id ASC
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f551467ec6bb868b93fa1fae51207672' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:32', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082385, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'isbn', 1, '0109836413', 969082385, '0109836413')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:47:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082385, 'f551467ec6bb868b93fa1fae51207672')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082106 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecc521f08cd06d10f948779924c52424' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:32', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'format', 'journal', 969082386, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:32', 'isbn', 1, '9789810743734', 969082386, '9789810743734')[0m
[1m[35m (215.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082386, 'ecc521f08cd06d10f948779924c52424')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082107 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2389d97596a237e544dd79c900ebac0' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082387, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '000000000', 969082387, '000000000')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082387, 'b2389d97596a237e544dd79c900ebac0')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082108 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a720367f8fbbe92e6ac9bdc00bcf6ed' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:47:33', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082388, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'title', 1, 'title', 969082388, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'author', 1, 'au', 969082388, 'au')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082388, '6a720367f8fbbe92e6ac9bdc00bcf6ed')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082109, '--- {}\n', 'test_holding', 'holding')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09198795289c682e047d6ada28685541' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082389, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '121212', 969082389, '121212')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082389, '09198795289c682e047d6ada28685541')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082110"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082110 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082110 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082110
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082110, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082110\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082389 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082389)
Redirected to http://test.host/resolve?umlaut.request_id=969082110&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A47%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.3ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a3e6d9669ac2338e89473def92790e1d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082390, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '121212', 969082390, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082390, 'a3e6d9669ac2338e89473def92790e1d')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082111, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082111"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082111 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082111 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013081
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082111, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013081\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082390 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082390)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082111&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A47%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 28ms (ActiveRecord: 21.6ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9294a94478c2b8ea3e8e6c72ffade7f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082391, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '121212', 969082391, '121212')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082391, 'a9294a94478c2b8ea3e8e6c72ffade7f')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082112, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082112"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082112 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082112 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082112 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:47:33', NULL, 969082112, 'BorrowDirect', 'in_progress', '2015-02-12 20:47:33')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:47:33' WHERE `dispatched_services`.`id` = 2230[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082112, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082391 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082391)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082112&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A47%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 68ms (ActiveRecord: 56.6ms)
[1m[35mDispatchedService Load (4.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082112
[1m[36mServiceResponse Load (6.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082112 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082112 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:47:33' WHERE `dispatched_services`.`id` = 2230
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013084[0m
[1m[35m (14.0ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '83366c6b40efa58d3dffc46dc1185a01' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:47:33', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'format', 'journal', 969082392, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:47:33', 'isbn', 1, '121212', 969082392, '121212')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:47:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082392, '83366c6b40efa58d3dffc46dc1185a01')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082113"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082113 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082113 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:47:33', 969082113, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082392 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082392)
Redirected to http://test.host/resolve?umlaut.request_id=969082113&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A47%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 21.9ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (1.1ms)[0m ROLLBACK
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 22ms (Views: 10.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 64ms (Views: 0.4ms | ActiveRecord: 6.5ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a38d21174bf0a9a11a6ab8e9f229862a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:01', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:01', 'format', 'journal', 969082393, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:01', 'isbn', 1, '121212', 969082393, '121212')[0m
[1m[35m (27.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:49:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082393, 'a38d21174bf0a9a11a6ab8e9f229862a')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082114"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082114 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082114 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082114
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:01', 969082114, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082114\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082393 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082393)
Redirected to http://test.host/resolve?umlaut.request_id=969082114&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A49%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 55ms (ActiveRecord: 29.2ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '47a71ac2a7d2cfc647ac0cf81aa042d1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:01', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:01', 'format', 'journal', 969082394, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:01', 'isbn', 1, '121212', 969082394, '121212')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:49:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082394, '47a71ac2a7d2cfc647ac0cf81aa042d1')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082115, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082115"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082115 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082115 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013087
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082115, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013087\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082394 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082394)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082115&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A49%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 22.6ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c22a239db8f52a69d5b29ddd25cdac3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:02', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082395, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'isbn', 1, '121212', 969082395, '121212')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082395, '9c22a239db8f52a69d5b29ddd25cdac3')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082116, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082116"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082116 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082116 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082116 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:02', NULL, 969082116, 'BorrowDirect', 'in_progress', '2015-02-12 20:49:02')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2231[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082116, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082395 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082395)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082116&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A49%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 82ms (ActiveRecord: 61.4ms)
[1m[35mDispatchedService Load (4.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082116
[1m[36mServiceResponse Load (6.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082116 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082116 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2231
[1m[36m (22.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013090[0m
[1m[35m (14.1ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '350e97322b60cd49dfb7912ae4ab5e84' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:02', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082396, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'isbn', 1, '121212', 969082396, '121212')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082396, '350e97322b60cd49dfb7912ae4ab5e84')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082117"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082117 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082117 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:02', 969082117, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082396 LIMIT 1[0m
[1m[35mReferentValue Load (1.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082396)
Redirected to http://test.host/resolve?umlaut.request_id=969082117&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A49%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 38ms (ActiveRecord: 30.9ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '905307531e04df9fd88cb5acd045810e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:02', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082397, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082397, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'aulast', 1, 'grimes', 969082397, 'Grimes')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082397, '905307531e04df9fd88cb5acd045810e')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aade275d897883ba9f21e9e60d0e4f23' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:49:02', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082398, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'auinit', 1, 'rd', 969082398, 'RD')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'aulast', 1, 'kaplan', 969082398, 'Kaplan')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'atitle', 1, 'the coming anarchy', 969082398, 'The coming anarchy')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'title', 1, 'the atlantic monthly', 969082398, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'volume', 1, '273', 969082398, '273')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'issue', 1, '2', 969082398, '2')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'date', 1, '1994', 969082398, '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'spage', 1, '44', 969082398, '44')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'issn', 1, '1072-7825', 969082398, '1072-7825')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082398, 'info:sid/google', 'aade275d897883ba9f21e9e60d0e4f23')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082119 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:02', NULL, 969082119, 'test_bd', 'successful', '2015-02-12 20:49:02')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2232[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082119[0m
[1m[35mServiceResponse Exists (1.5ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082119 LIMIT 1
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e3c015ad40462bfd7aa69cb589585d3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:49:02', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'book', 969082399, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'auinit', 1, 'eh', 969082399, 'EH')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'aulast', 1, 'lenneberg', 969082399, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'title', 1, 'biological foundations of language', 969082399, 'Biological foundations of language')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'genre', 1, 'book', 969082399, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'date', 1, '1967', 969082399, '1967')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:49:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082399, 'info:sid/google', '9e3c015ad40462bfd7aa69cb589585d3')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082120 ORDER BY id ASC
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed4349a343976c1f2b903b71cee0a142' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:02', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'format', 'journal', 969082400, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:02', 'isbn', 1, '9789810743734', 969082400, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082400, 'ed4349a343976c1f2b903b71cee0a142')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082121[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:02', NULL, 969082121, 'test_bd', 'queued', '2015-02-12 20:49:02')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2233
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082121 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082400)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082400)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082121) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082121)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082121 AND `dispatched_services`.`id` = 2233 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:02' WHERE `dispatched_services`.`id` = 2233[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082121 LIMIT 1[0m
[1m[35mDispatchedService Load (7.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082400 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082400)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082121 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (36.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (37.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082121 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms)
[1m[36mPermalink Load (1.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082400[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (11.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082121[0m
[1m[35m (25.4ms)[0m COMMIT
Completed 200 OK in 370ms (Views: 127.1ms | ActiveRecord: 152.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:49:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2cf8efc1fb5ea2b2cb013fcd62108722' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:03', 'some book')[0m
[1m[35mSQL (4.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'format', 'book', 969082401, 'book')
[1m[36mSQL (22.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'genre', 1, 'book', 969082401, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'author', 1, 'smith', 969082401, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'title', 1, 'some book', 969082401, 'Some Book')[0m
[1m[35m (22.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:49:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082401, '2cf8efc1fb5ea2b2cb013fcd62108722')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082122[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:03', NULL, 969082122, 'BorrowDirect', 'queued', '2015-02-12 20:49:03')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2234
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082122 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082401)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082401)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082122) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082122)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082122 AND `dispatched_services`.`id` = 2234 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2234[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082122 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082401 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082401)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082122 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082122 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082401
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082122
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 246ms (Views: 21.4ms | ActiveRecord: 170.1ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:49:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '035b570c9946a2cc6bfe4b2dd7df1f53' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:03', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'format', 'journal', 969082402, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'genre', 1, 'article', 969082402, 'article')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'title', 1, 'foo', 969082402, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'author', 1, 'bar', 969082402, 'bar')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:49:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082402, '035b570c9946a2cc6bfe4b2dd7df1f53')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082123
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:03', NULL, 969082123, 'BorrowDirect', 'queued', '2015-02-12 20:49:03')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2235[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082123 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082402)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082402)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082123) ORDER BY id ASC
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082123)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082123 AND `dispatched_services`.`id` = 2235 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2235
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082123 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082402 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082402)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082123 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082123 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082402[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082123[0m
[1m[35m (15.6ms)[0m COMMIT
Completed 200 OK in 204ms (Views: 18.4ms | ActiveRecord: 114.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd11518f0becf3484e80df66c4a371a3' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:03', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'format', 'book', 969082403, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'genre', 1, 'book', 969082403, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'title', 1, 'foo', 969082403, 'foo')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:49:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082403, 'cd11518f0becf3484e80df66c4a371a3')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082124 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:03', NULL, 969082124, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:49:03')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2236
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082124" for 127.0.0.1 at 2015-02-12 15:49:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082124"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082124 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082403 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082403)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082124
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082124
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082124 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082124 [["request_id", 969082124]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082403 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082403)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082124 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082124 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082403[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082124[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 71ms (Views: 19.0ms | ActiveRecord: 44.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '931596f147f1563df50afa643a02dba4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:03', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'format', 'journal', 969082404, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:03', 'isbn', 1, '9789810743734', 969082404, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082404, '931596f147f1563df50afa643a02dba4')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082125[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:03', NULL, 969082125, 'BorrowDirect', 'queued', '2015-02-12 20:49:03')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2237
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082125 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082404)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082404)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082125) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082125)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082125 AND `dispatched_services`.`id` = 2237 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:03' WHERE `dispatched_services`.`id` = 2237[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082125 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082404 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082404)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082125 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082125 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082404
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082125
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 242ms (Views: 20.4ms | ActiveRecord: 128.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:49:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9754d56ba8efcec049e185db0827749a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:03', '0109836413')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082405, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'isbn', 1, '0109836413', 969082405, '0109836413')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:49:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082405, '9754d56ba8efcec049e185db0827749a')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082126
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:04', NULL, 969082126, 'BorrowDirect', 'queued', '2015-02-12 20:49:04')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2238[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082126 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082405)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082405)[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082126) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082126)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082126 AND `dispatched_services`.`id` = 2238 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2238
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082126 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082405 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082405)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082126 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082126 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082405[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082126[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 203ms (Views: 19.1ms | ActiveRecord: 131.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '638d0c3df0dde0b496845aead486c40e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:04', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082406, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'isbn', 1, '9789810743734', 969082406, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082406, '638d0c3df0dde0b496845aead486c40e')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082127[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:04', NULL, 969082127, 'BorrowDirect', 'queued', '2015-02-12 20:49:04')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2239
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082127 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082406)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082406)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082127) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082127)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082127 AND `dispatched_services`.`id` = 2239 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2239[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082127 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082406 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082406)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082127 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082127 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082406
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082127
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 201ms (Views: 19.6ms | ActiveRecord: 130.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '365c01755955e23087e0129a1b14f61e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:04', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082407, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'isbn', 1, '9789810743734', 969082407, '9789810743734')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082407, '365c01755955e23087e0129a1b14f61e')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082128
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:04', NULL, 969082128, 'BorrowDirect', 'queued', '2015-02-12 20:49:04')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2240[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082128 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082407)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082407)[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082128) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082128)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082128 AND `dispatched_services`.`id` = 2240 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2240
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082128 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082407 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082407)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082128 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082128 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (2.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082407[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082128[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 250ms (Views: 20.0ms | ActiveRecord: 137.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:49:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe113f0dfb6d72bc398899e536c8c6fd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:04', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082408, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'isbn', 1, '9789810743734', 969082408, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082408, 'fe113f0dfb6d72bc398899e536c8c6fd')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082129[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:04', NULL, 969082129, 'BorrowDirect', 'queued', '2015-02-12 20:49:04')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2241
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082129 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082408)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082408)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082129) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082129)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082129 AND `dispatched_services`.`id` = 2241 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:49:04' WHERE `dispatched_services`.`id` = 2241[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082129 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082408 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082408)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082129 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082129 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082408
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082129
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 207ms (Views: 19.8ms | ActiveRecord: 134.5ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfb3ae99e531505bde83cf934f074b01' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:04', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082409, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'title', 1, 'title', 969082409, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'author', 1, 'au', 969082409, 'au')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:49:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082409, 'dfb3ae99e531505bde83cf934f074b01')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:04', 969082130, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082130 ORDER BY id ASC[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de096849fc7fc5815e1745fe7f6c1954' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:04', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'format', 'journal', 969082410, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'title', 1, 'title', 969082410, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:04', 'author', 1, 'au', 969082410, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082410, 'de096849fc7fc5815e1745fe7f6c1954')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:05', 969082131, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082131 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082131 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:49:05', NULL, 969082131, 'test_bd', 'successful', '2015-02-12 20:49:05')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:49:05' WHERE `dispatched_services`.`id` = 2242[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082131[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acf0adcce2a118c287ce2434efd021a3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:05', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082411, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'title', 1, 'title', 969082411, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'author', 1, 'au', 969082411, 'au')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082411, 'acf0adcce2a118c287ce2434efd021a3')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:05', 969082132, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082132 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '369ce7882f33633c0c6e856b8eccbd5c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082412, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '9789810743734', 969082412, '9789810743734')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082412, '369ce7882f33633c0c6e856b8eccbd5c')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082133 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8dcd9aaa3210c27d1cd29ed5d8e46c6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082413, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '9789810743734', 969082413, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082413, 'e8dcd9aaa3210c27d1cd29ed5d8e46c6')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082134 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5f17720e4f53ca8707ddc7d5e006d0b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082414, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '0109836413', 969082414, '0109836413')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082414, 'b5f17720e4f53ca8707ddc7d5e006d0b')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082135 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '93f91b8974f5e3c40c0b43e1893d5755' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082415, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '000000000', 969082415, '000000000')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082415, '93f91b8974f5e3c40c0b43e1893d5755')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082136 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '57427e0864cf7a9d0dbab365d2f5bda7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:49:05', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082416, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'isbn', 1, '9789810743734', 969082416, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082416, '57427e0864cf7a9d0dbab365d2f5bda7')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082137 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc9691587f41a95b296bd71482d7016e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:49:05', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'format', 'journal', 969082417, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'title', 1, 'title', 969082417, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:49:05', 'author', 1, 'au', 969082417, 'au')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:49:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082417, 'dc9691587f41a95b296bd71482d7016e')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:49:05', 969082138, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a4e862c815df12ee852af9505578599' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.8ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082418, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '9789810743734', 969082418, '9789810743734')
[1m[36m (22.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082418, '5a4e862c815df12ee852af9505578599')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082139 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '578432070816872f63b6eff8ae15cc28' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082419, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '9789810743734', 969082419, '9789810743734')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082419, '578432070816872f63b6eff8ae15cc28')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082140 ORDER BY id ASC[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10749e40499bc47aa8078f2e6918bcf6' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082420, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '0109836413', 969082420, '0109836413')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (41.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082420, '10749e40499bc47aa8078f2e6918bcf6')[0m
[1m[35m (24.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082141 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41e397efa1b73987b2ec8efbc386ebb2' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082421, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '000000000', 969082421, '000000000')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082421, '41e397efa1b73987b2ec8efbc386ebb2')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082142 ORDER BY id ASC[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 20ms (Views: 11.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.6ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c82c9bf4f4883a24fa59fdf6da4187d2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082422, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '121212', 969082422, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082422, 'c82c9bf4f4883a24fa59fdf6da4187d2')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082143"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082143 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082143 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082143
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:48', 969082143, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082143\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082422 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082422)
Redirected to http://test.host/resolve?umlaut.request_id=969082143&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A53%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 80ms (ActiveRecord: 26.5ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '981210ea3d5d91c8cc8b4c4d468c6d34' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082423, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '121212', 969082423, '121212')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082423, '981210ea3d5d91c8cc8b4c4d468c6d34')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:48', 969082144, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082144"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082144 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082144 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013097
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:48', 969082144, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013097\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082423 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082423)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082144&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A53%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 23.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6cf0740980f2389b375aebbfa916a345' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:48', '121212')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'format', 'journal', 969082424, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:48', 'isbn', 1, '121212', 969082424, '121212')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082424, '6cf0740980f2389b375aebbfa916a345')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:48', 969082145, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082145"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082145 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082145 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082145 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:49', NULL, 969082145, 'BorrowDirect', 'in_progress', '2015-02-12 20:53:49')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2243[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082145, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082424 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082424)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082145&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A53%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 90ms (ActiveRecord: 69.4ms)
[1m[35mDispatchedService Load (4.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082145
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082145 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082145 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2243
[1m[36m (22.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013100[0m
[1m[35m (14.3ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0629e2ceaa46444900bd4ef86ff34fc4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:49', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082425, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'isbn', 1, '121212', 969082425, '121212')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082425, '0629e2ceaa46444900bd4ef86ff34fc4')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082146"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082146 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082146 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082146, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082425 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082425)
Redirected to http://test.host/resolve?umlaut.request_id=969082146&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A53%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 40ms (ActiveRecord: 31.9ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95ec160906ec7ae153845cbba8aca40d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:49', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082426, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'title', 969082426, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'author', 1, 'au', 969082426, 'au')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082426, '95ec160906ec7ae153845cbba8aca40d')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082147, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082147 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082147 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:49', NULL, 969082147, 'test_bd', 'successful', '2015-02-12 20:53:49')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2244
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082147
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3968a5eedc9f0cfbc0304f761695f326' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:49', 'title')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082427, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'title', 969082427, 'title')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'author', 1, 'au', 969082427, 'au')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082427, '3968a5eedc9f0cfbc0304f761695f326')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082148, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082148 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0fbfc3de152d057eb13176212e84a09b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:49', 'title')[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082428, 'journal')
[1m[36mSQL (3.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'title', 969082428, 'title')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'author', 1, 'au', 969082428, 'au')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082428, '0fbfc3de152d057eb13176212e84a09b')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:49', 969082149, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082149 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cafe163b8119a1057036724a15b373d2' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:53:49', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'book', 969082429, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'auinit', 1, 'eh', 969082429, 'EH')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'aulast', 1, 'lenneberg', 969082429, 'Lenneberg')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'biological foundations of language', 969082429, 'Biological foundations of language')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'genre', 1, 'book', 969082429, 'book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'date', 1, '1967', 969082429, '1967')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082429, 'info:sid/google', 'cafe163b8119a1057036724a15b373d2')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082150 ORDER BY id ASC
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '686cb08df85017b61bc30d70db36a712' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:53:49', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082430, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'auinit', 1, 'rd', 969082430, 'RD')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'aulast', 1, 'kaplan', 969082430, 'Kaplan')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'atitle', 1, 'the coming anarchy', 969082430, 'The coming anarchy')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'the atlantic monthly', 969082430, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'volume', 1, '273', 969082430, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'issue', 1, '2', 969082430, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'date', 1, '1994', 969082430, '1994')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'spage', 1, '44', 969082430, '44')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'issn', 1, '1072-7825', 969082430, '1072-7825')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082430, 'info:sid/google', '686cb08df85017b61bc30d70db36a712')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082151 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:49', NULL, 969082151, 'test_bd', 'successful', '2015-02-12 20:53:49')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2245[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082151[0m
[1m[35mServiceResponse Exists (1.6ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082151 LIMIT 1
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1db675a3aaf25744b3236c5c13a09fe0' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:49', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082431, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082431, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'aulast', 1, 'grimes', 969082431, 'Grimes')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:53:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082431, '1db675a3aaf25744b3236c5c13a09fe0')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6f0b7fc2556663d55833bffb4e22c6fe' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:49', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'format', 'journal', 969082432, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:49', 'isbn', 1, '9789810743734', 969082432, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082432, '6f0b7fc2556663d55833bffb4e22c6fe')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082153[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:49', NULL, 969082153, 'test_bd', 'queued', '2015-02-12 20:53:49')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2246
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082153 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082432)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082432)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082153) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082153)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082153 AND `dispatched_services`.`id` = 2246 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:49' WHERE `dispatched_services`.`id` = 2246[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082153 LIMIT 1[0m
[1m[35mDispatchedService Load (40.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082432 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082432)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082153 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082153 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082432
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082153
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 352ms (Views: 129.3ms | ActiveRecord: 133.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:53:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f7f3987e91247f0b1fb350501c721cc' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:50', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'format', 'book', 969082433, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'genre', 1, 'book', 969082433, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'author', 1, 'smith', 969082433, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'title', 1, 'some book', 969082433, 'Some Book')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:53:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082433, '9f7f3987e91247f0b1fb350501c721cc')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082154
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:50', NULL, 969082154, 'BorrowDirect', 'queued', '2015-02-12 20:53:50')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2247[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082154 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082433)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082433)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082154) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082154)[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082154 AND `dispatched_services`.`id` = 2247 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2247
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082154 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082433 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082433)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082154 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082154 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082433[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082154[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 214ms (Views: 19.1ms | ActiveRecord: 139.1ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:53:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2722469826bdafef4a2a429771c543d6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:50', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'format', 'journal', 969082434, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'genre', 1, 'article', 969082434, 'article')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'title', 1, 'foo', 969082434, 'foo')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'author', 1, 'bar', 969082434, 'bar')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:53:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082434, '2722469826bdafef4a2a429771c543d6')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082155[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:50', NULL, 969082155, 'BorrowDirect', 'queued', '2015-02-12 20:53:50')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2248
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082155 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082434)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082434)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082155) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082155)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082155 AND `dispatched_services`.`id` = 2248 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2248[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082155 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082434 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082434)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082155 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082155 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082434
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082155
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 206ms (Views: 16.5ms | ActiveRecord: 117.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7ad534077569b9551c692ba9bd4d866' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:50', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'format', 'book', 969082435, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'genre', 1, 'book', 969082435, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'title', 1, 'foo', 969082435, 'foo')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:53:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082435, 'b7ad534077569b9551c692ba9bd4d866')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082156 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:50', NULL, 969082156, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:53:50')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2249[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082156" for 127.0.0.1 at 2015-02-12 15:53:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082156"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082156 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082435 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082435)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082156[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082156[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082156 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082156[0m [["request_id", 969082156]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082435 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082435)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082156 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082156 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082435
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082156
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 18.3ms | ActiveRecord: 46.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6515eb3927668815527a4bd111ce09c5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:50', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'format', 'journal', 969082436, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:50', 'isbn', 1, '9789810743734', 969082436, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082436, '6515eb3927668815527a4bd111ce09c5')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082157
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:50', NULL, 969082157, 'BorrowDirect', 'queued', '2015-02-12 20:53:50')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2250[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082157 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082436)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082436)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082157) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082157)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082157 AND `dispatched_services`.`id` = 2250 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:50' WHERE `dispatched_services`.`id` = 2250
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082157 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082436 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082436)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082157 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082157 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082436[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082157[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 205ms (Views: 19.2ms | ActiveRecord: 134.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:53:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb539c1a61d7a27d635fd6d4809ed7d1' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:51', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082437, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'isbn', 1, '0109836413', 969082437, '0109836413')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:53:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082437, 'fb539c1a61d7a27d635fd6d4809ed7d1')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082158[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:51', NULL, 969082158, 'BorrowDirect', 'queued', '2015-02-12 20:53:51')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2251
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082158 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082437)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082437)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082158) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082158)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082158 AND `dispatched_services`.`id` = 2251 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2251[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082158 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082437 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082437)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082158 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082158 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082437
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082158
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 209ms (Views: 18.7ms | ActiveRecord: 137.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b28a8bec3061e3c06c8e0ee85bb6ae08' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:51', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082438, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'isbn', 1, '9789810743734', 969082438, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082438, 'b28a8bec3061e3c06c8e0ee85bb6ae08')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082159
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:51', NULL, 969082159, 'BorrowDirect', 'queued', '2015-02-12 20:53:51')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2252[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082159 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082438)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082438)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082159) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082159)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082159 AND `dispatched_services`.`id` = 2252 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2252
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082159 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082438 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082438)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082159 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082159 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082438[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082159[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 244ms (Views: 19.9ms | ActiveRecord: 132.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0142759ae82ecc5512f0d9c59f76932' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:51', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082439, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'isbn', 1, '9789810743734', 969082439, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082439, 'e0142759ae82ecc5512f0d9c59f76932')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082160[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:51', NULL, 969082160, 'BorrowDirect', 'queued', '2015-02-12 20:53:51')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2253
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082160 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082439)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082439)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082160) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082160)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082160 AND `dispatched_services`.`id` = 2253 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2253[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082160 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082439 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082439)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082160 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082160 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082439
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082160
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 208ms (Views: 20.9ms | ActiveRecord: 130.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:53:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1592049511ec4b1c31a1d8185d6b16ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:51', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082440, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'isbn', 1, '9789810743734', 969082440, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082440, '1592049511ec4b1c31a1d8185d6b16ff')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082161
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:53:51', NULL, 969082161, 'BorrowDirect', 'queued', '2015-02-12 20:53:51')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2254[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082161 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082440)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082440)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082161) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082161)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082161 AND `dispatched_services`.`id` = 2254 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:53:51' WHERE `dispatched_services`.`id` = 2254
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082161 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082440 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082440)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082161 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082161 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082440[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082161[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 202ms (Views: 18.8ms | ActiveRecord: 129.5ms)
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6894a3ef416faed1df1137711494361d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:53:51', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'format', 'journal', 969082441, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'title', 1, 'title', 969082441, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:51', 'author', 1, 'au', 969082441, 'au')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:53:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082441, '6894a3ef416faed1df1137711494361d')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:53:52', 969082162, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f3d48be5db85d9b1c47a6159c04ad226' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:53:52', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:52', 'format', 'journal', 969082442, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:53:52', 'isbn', 1, '9789810743734', 969082442, '9789810743734')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:53:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082442, 'f3d48be5db85d9b1c47a6159c04ad226')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082163 ORDER BY id ASC[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89381876c6532f9e835740a7dd8c03a1' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 20:54:17', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'format', 'journal', 969082443, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'auinit', 1, 'rd', 969082443, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'aulast', 1, 'kaplan', 969082443, 'Kaplan')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'atitle', 1, 'the coming anarchy', 969082443, 'The coming anarchy')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'title', 1, 'the atlantic monthly', 969082443, 'The Atlantic monthly')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'volume', 1, '273', 969082443, '273')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'issue', 1, '2', 969082443, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'date', 1, '1994', 969082443, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'spage', 1, '44', 969082443, '44')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:17', 'issn', 1, '1072-7825', 969082443, '1072-7825')
[1m[36m (22.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 20:54:17', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082443, 'info:sid/google', '89381876c6532f9e835740a7dd8c03a1')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082164 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:18', NULL, 969082164, 'test_bd', 'successful', '2015-02-12 20:54:18')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2255
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082164
[1m[36mServiceResponse Exists (1.7ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082164 LIMIT 1[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95e3dd70d6032aa89d905e7003335adb' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:18', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'journal', 969082444, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082444, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'aulast', 1, 'grimes', 969082444, 'Grimes')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 20:54:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082444, '95e3dd70d6032aa89d905e7003335adb')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '33a181eeebd3f86a9d138cfe8ac19b46' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 20:54:18', 'biological foundations of language', '1967')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'book', 969082445, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'auinit', 1, 'eh', 969082445, 'EH')
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'aulast', 1, 'lenneberg', 969082445, 'Lenneberg')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'title', 1, 'biological foundations of language', 969082445, 'Biological foundations of language')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'genre', 1, 'book', 969082445, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'date', 1, '1967', 969082445, '1967')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 20:54:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082445, 'info:sid/google', '33a181eeebd3f86a9d138cfe8ac19b46')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082166 ORDER BY id ASC[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37b84a1fe3c29c24589bc8daa4ed80c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:18', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'journal', 969082446, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'isbn', 1, '9789810743734', 969082446, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082446, '37b84a1fe3c29c24589bc8daa4ed80c0')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082167
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:18', NULL, 969082167, 'test_bd', 'queued', '2015-02-12 20:54:18')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2256[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082167 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082446)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082446)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082167) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082167)[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082167 AND `dispatched_services`.`id` = 2256 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2256
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082167 LIMIT 1
[1m[36mDispatchedService Load (37.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082446 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082446)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082167 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082167 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (86.8ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082446
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082167
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 421ms (Views: 131.9ms | ActiveRecord: 141.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 15:54:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7637b292bc34d100b9082b93c3ed10b' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:18', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'book', 969082447, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'genre', 1, 'book', 969082447, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'author', 1, 'smith', 969082447, 'Smith')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'title', 1, 'some book', 969082447, 'Some Book')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 20:54:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082447, 'e7637b292bc34d100b9082b93c3ed10b')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082168
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:18', NULL, 969082168, 'BorrowDirect', 'queued', '2015-02-12 20:54:18')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2257[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082168 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082447)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082447)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082168) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082168)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082168 AND `dispatched_services`.`id` = 2257 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:18' WHERE `dispatched_services`.`id` = 2257
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082168 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082447 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082447)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082168 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082168 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082447[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (24.6ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082168[0m
[1m[35m (17.2ms)[0m COMMIT
Completed 200 OK in 246ms (Views: 21.4ms | ActiveRecord: 168.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 15:54:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a69251e160c0eb1d9b2ebfc63fd296b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:18', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'format', 'journal', 969082448, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'genre', 1, 'article', 969082448, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:18', 'title', 1, 'foo', 969082448, 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'author', 1, 'bar', 969082448, 'bar')[0m
[1m[35m (47.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 20:54:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082448, '6a69251e160c0eb1d9b2ebfc63fd296b')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082169[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:19', NULL, 969082169, 'BorrowDirect', 'queued', '2015-02-12 20:54:19')[0m
[1m[35m (13.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2258
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082169 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082448)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082448)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082169) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082169)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082169 AND `dispatched_services`.`id` = 2258 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2258[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082169 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082448 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082448)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082169 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082169 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082448
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082169
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 249ms (Views: 17.6ms | ActiveRecord: 157.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c3ef7f1f70bbac6f24c3f6f83778f36' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:19', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'format', 'book', 969082449, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'genre', 1, 'book', 969082449, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'title', 1, 'foo', 969082449, 'foo')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 20:54:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082449, '2c3ef7f1f70bbac6f24c3f6f83778f36')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082170 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:19', NULL, 969082170, 'BorrowDirect', 'failed_fatal', '2015-02-12 20:54:19')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2259[0m
[1m[35m (13.8ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082170" for 127.0.0.1 at 2015-02-12 15:54:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082170"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082170 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082449 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082449)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082170[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082170[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082170 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082170[0m [["request_id", 969082170]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082449 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082449)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082170 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082170 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082449
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082170
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 71ms (Views: 17.6ms | ActiveRecord: 44.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfc276479d0d10524b93432b69cc3930' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:19', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'format', 'journal', 969082450, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'isbn', 1, '9789810743734', 969082450, '9789810743734')
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082450, 'bfc276479d0d10524b93432b69cc3930')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082171
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:19', NULL, 969082171, 'BorrowDirect', 'queued', '2015-02-12 20:54:19')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2260[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082171 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082450)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082450)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082171) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082171)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082171 AND `dispatched_services`.`id` = 2260 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2260
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082171 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082450 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082450)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082171 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082171 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082450[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082171[0m
[1m[35m (17.4ms)[0m COMMIT
Completed 200 OK in 223ms (Views: 18.6ms | ActiveRecord: 150.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 15:54:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80be171554308dc0bad736837fc4b337' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:19', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'format', 'journal', 969082451, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'isbn', 1, '0109836413', 969082451, '0109836413')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:54:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082451, '80be171554308dc0bad736837fc4b337')
[1m[36m (33.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082172[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:19', NULL, 969082172, 'BorrowDirect', 'queued', '2015-02-12 20:54:19')[0m
[1m[35m (25.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2261
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082172 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082451)[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082451)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082172) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082172)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082172 AND `dispatched_services`.`id` = 2261 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:19' WHERE `dispatched_services`.`id` = 2261[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082172 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082451 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082451)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082172 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082172 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082451
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082172
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 240ms (Views: 19.0ms | ActiveRecord: 168.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4300979f914483d0a8e6cb4f406be70b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:19', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:19', 'format', 'journal', 969082452, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082452, '9789810743734')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082452, '4300979f914483d0a8e6cb4f406be70b')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082173
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:20', NULL, 969082173, 'BorrowDirect', 'queued', '2015-02-12 20:54:20')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2262[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082173 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082452)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082452)[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082173) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082173)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082173 AND `dispatched_services`.`id` = 2262 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2262
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082173 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082452 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082452)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082173 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082173 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (2.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082452[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082173[0m
[1m[35m (29.2ms)[0m COMMIT
Completed 200 OK in 277ms (Views: 19.7ms | ActiveRecord: 163.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:20 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5760ac2f72c4719090c44c15f12b0c98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082453, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082453, '9789810743734')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082453, '5760ac2f72c4719090c44c15f12b0c98')
[1m[36m (27.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082174[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:20', NULL, 969082174, 'BorrowDirect', 'queued', '2015-02-12 20:54:20')[0m
[1m[35m (23.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2263
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082174 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082453)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082453)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082174) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082174)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082174 AND `dispatched_services`.`id` = 2263 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2263[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082174 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082453 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082453)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082174 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082174 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082453
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082174
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 240ms (Views: 19.4ms | ActiveRecord: 168.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 15:54:20 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '274cb28259c1731b4c916e660bd67869' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082454, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082454, '9789810743734')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082454, '274cb28259c1731b4c916e660bd67869')[0m
[1m[35m (22.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082175
[1m[36m (29.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:20', NULL, 969082175, 'BorrowDirect', 'queued', '2015-02-12 20:54:20')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2264[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082175 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082454)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082454)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082175) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082175)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082175 AND `dispatched_services`.`id` = 2264 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:149:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:94:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:79:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/generate_query.rb:86:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:149:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:20' WHERE `dispatched_services`.`id` = 2264
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082175 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082454 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082454)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082175 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082175 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082454[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082175[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 240ms (Views: 19.4ms | ActiveRecord: 169.8ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fb8dcf4fd08425f3869ef20f973e114' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082455, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082455, '9789810743734')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082455, '3fb8dcf4fd08425f3869ef20f973e114')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082176 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45fd5937ef75a1c9e9e57fb9f4e28a0f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '0109836413')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082456, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '0109836413', 969082456, '0109836413')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 20:54:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082456, '45fd5937ef75a1c9e9e57fb9f4e28a0f')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082177 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ce81b0e8335ce2c5618d95c3f48d9451' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '000000000')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082457, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '000000000', 969082457, '000000000')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 20:54:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082457, 'ce81b0e8335ce2c5618d95c3f48d9451')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082178 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '73f3ccb54626acc5dd0c088eb416ab8d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082458, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082458, '9789810743734')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082458, '73f3ccb54626acc5dd0c088eb416ab8d')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082179 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96d7c4184611e59284317cae59321299' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:20', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'format', 'journal', 969082459, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:20', 'isbn', 1, '9789810743734', 969082459, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082459, '96d7c4184611e59284317cae59321299')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082180 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '456f55728ecf12dfc474a10e77359d32' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:21', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082460, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'title', 1, 'title', 969082460, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'author', 1, 'au', 969082460, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082460, '456f55728ecf12dfc474a10e77359d32')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082181, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082181 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f78a2998e0a4419cee52294c7334c12d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:21', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082461, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'title', 1, 'title', 969082461, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'author', 1, 'au', 969082461, 'au')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082461, 'f78a2998e0a4419cee52294c7334c12d')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082182, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082182 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082182 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:21', NULL, 969082182, 'test_bd', 'successful', '2015-02-12 20:54:21')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:21' WHERE `dispatched_services`.`id` = 2265
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082182
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9795f4906f08207bbaa8ee91f3d04055' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:21', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082462, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'title', 1, 'title', 969082462, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'author', 1, 'au', 969082462, 'au')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082462, '9795f4906f08207bbaa8ee91f3d04055')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082183, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082183 ORDER BY id ASC
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76876aa5442a3d2590b5d1f3a1b3945f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:21', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082463, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'isbn', 1, '121212', 969082463, '121212')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082463, '76876aa5442a3d2590b5d1f3a1b3945f')[0m
[1m[35m (14.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082184"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082184 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082184 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969082184
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082184, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082184\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082463 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082463)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082184&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A54%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.3ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '872353980ee975909ed454586022c5fe' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:21', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082464, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'isbn', 1, '121212', 969082464, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082464, '872353980ee975909ed454586022c5fe')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082185, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (32.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082185"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082185 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082185 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013110
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082185, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013110\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (24.0ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082464 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082464)
Redirected to http://test.host/resolve?umlaut.request_id=969082185&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A54%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 39ms (ActiveRecord: 32.6ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f3d16d0b7a8c9d128cd9c4269deaee62' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:21', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082465, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'isbn', 1, '121212', 969082465, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082465, 'f3d16d0b7a8c9d128cd9c4269deaee62')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082186, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082186"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082186 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082186 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082186 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 20:54:21', NULL, 969082186, 'BorrowDirect', 'in_progress', '2015-02-12 20:54:21')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 20:54:21' WHERE `dispatched_services`.`id` = 2266
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082186, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082465 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082465)
Redirected to http://test.host/resolve?umlaut.request_id=969082186&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A54%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 72ms (ActiveRecord: 57.5ms)
[1m[36mDispatchedService Load (6.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082186[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082186 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082186 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-0040a5cd12a8/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 20:54:21' WHERE `dispatched_services`.`id` = 2266[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013113
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc2e9a868127ff6c6c85a2afc37c8c02' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 20:54:21', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082466, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'isbn', 1, '121212', 969082466, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082466, 'fc2e9a868127ff6c6c85a2afc37c8c02')[0m
[1m[35m (13.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082187"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082187 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082187 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082187, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082466 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082466)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082187&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T15%3A54%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.3ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '997ae1a4327abe73a8ab322081246669' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 20:54:21', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'format', 'journal', 969082467, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'title', 1, 'title', 969082467, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 20:54:21', 'author', 1, 'au', 969082467, 'au')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 20:54:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082467, '997ae1a4327abe73a8ab322081246669')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 20:54:21', 969082188, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.8ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31a499e6b7738919f38d81cf089bb7a7' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:09', 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'format', 'journal', 969082468, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'title', 1, 'title', 969082468, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'author', 1, 'au', 969082468, 'au')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082468, '31a499e6b7738919f38d81cf089bb7a7')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:09', 969082189, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082189 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60dd97af963c51243f5894c8dc087127' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:09', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'format', 'journal', 969082469, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'title', 1, 'title', 969082469, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:09', 'author', 1, 'au', 969082469, 'au')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082469, '60dd97af963c51243f5894c8dc087127')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:09', 969082190, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082190 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6660ed0f1a143c6fe4511f2a4d15a98' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:10', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'format', 'journal', 969082470, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'title', 1, 'title', 969082470, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'author', 1, 'au', 969082470, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082470, 'c6660ed0f1a143c6fe4511f2a4d15a98')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:10', 969082191, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082191 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082191 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:10', NULL, 969082191, 'test_bd', 'successful', '2015-02-12 21:17:10')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2267[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082191[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da63ef0b928d908fa1e6098dc229b200' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:10', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'format', 'journal', 969082471, 'journal')[0m
[1m[35mSQL (5.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'isbn', 1, '9789810743734', 969082471, '9789810743734')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082471, 'da63ef0b928d908fa1e6098dc229b200')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082192
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:10', NULL, 969082192, 'test_bd', 'queued', '2015-02-12 21:17:10')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2268[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082192 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082471)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082471)[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082192) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082192)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082192 AND `dispatched_services`.`id` = 2268 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2268
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082192 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082471 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082471)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.1ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082192 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082192 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (92.4ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082471
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.0ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082192
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 446ms (Views: 141.5ms | ActiveRecord: 139.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 16:17:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8b31c44dfe3b307c3a06037016eccd1' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:10', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'format', 'book', 969082472, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'genre', 1, 'book', 969082472, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'author', 1, 'smith', 969082472, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'title', 1, 'some book', 969082472, 'Some Book')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 21:17:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082472, 'c8b31c44dfe3b307c3a06037016eccd1')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082193
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:10', NULL, 969082193, 'BorrowDirect', 'queued', '2015-02-12 21:17:10')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2269[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082193 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082472)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082472)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082193) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082193)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082193 AND `dispatched_services`.`id` = 2269 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for ["Some Book", nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbIlNvbWUgQm9vayIsIG5p\n bF06QXJyYXk=\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2269
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082193 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082472 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082472)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082193 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082193 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082472[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082193[0m
[1m[35m (17.6ms)[0m COMMIT
Completed 200 OK in 225ms (Views: 21.2ms | ActiveRecord: 146.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 16:17:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b7498667be14cc87e054d2dd02b3b80' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:10', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'format', 'journal', 969082473, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'genre', 1, 'article', 969082473, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'title', 1, 'foo', 969082473, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:10', 'author', 1, 'bar', 969082473, 'bar')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 21:17:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082473, '9b7498667be14cc87e054d2dd02b3b80')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082194[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:10', NULL, 969082194, 'BorrowDirect', 'queued', '2015-02-12 21:17:10')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:10' WHERE `dispatched_services`.`id` = 2270
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082194 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082473)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082473)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082194) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082194)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082194 AND `dispatched_services`.`id` = 2270 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2270[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082194 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082473 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082473)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082194 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082194 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082473
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082194
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 204ms (Views: 18.3ms | ActiveRecord: 113.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9257b67aaac58e9ea3505cb067e2145f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:11', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'format', 'book', 969082474, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'genre', 1, 'book', 969082474, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'title', 1, 'foo', 969082474, 'foo')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 21:17:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082474, '9257b67aaac58e9ea3505cb067e2145f')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082195 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:11', NULL, 969082195, 'BorrowDirect', 'failed_fatal', '2015-02-12 21:17:11')
[1m[36m (13.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2271[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082195" for 127.0.0.1 at 2015-02-12 16:17:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082195"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082195 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082474 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082474)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082195[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082195[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082195 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082195[0m [["request_id", 969082195]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082474 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082474)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082195 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082195 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082474
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082195
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 72ms (Views: 19.2ms | ActiveRecord: 45.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3b42278dd184508289be8e8c8647f35' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (14.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:11', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'format', 'journal', 969082475, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'isbn', 1, '9789810743734', 969082475, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082475, 'd3b42278dd184508289be8e8c8647f35')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082196
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:11', NULL, 969082196, 'BorrowDirect', 'queued', '2015-02-12 21:17:11')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2272[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082196 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082475)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082475)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082196) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082196)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082196 AND `dispatched_services`.`id` = 2272 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2272
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082196 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082475 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082475)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082196 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082196 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082475[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082196[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 216ms (Views: 20.2ms | ActiveRecord: 143.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 16:17:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4df3231afe5a9ac0fbbd11bf7a90650e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:11', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'format', 'journal', 969082476, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'isbn', 1, '0109836413', 969082476, '0109836413')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 21:17:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082476, '4df3231afe5a9ac0fbbd11bf7a90650e')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082197[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:11', NULL, 969082197, 'BorrowDirect', 'queued', '2015-02-12 21:17:11')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2273
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082197 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082476)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082476)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082197) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082197)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082197 AND `dispatched_services`.`id` = 2273 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2273[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082197 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082476 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082476)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082197 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082197 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082476
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082197
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 203ms (Views: 20.7ms | ActiveRecord: 127.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '551ee33ec9d53448b9c8d6df9e29c1e4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:11', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'format', 'journal', 969082477, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:11', 'isbn', 1, '9789810743734', 969082477, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082477, '551ee33ec9d53448b9c8d6df9e29c1e4')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (3.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082198
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:11', NULL, 969082198, 'BorrowDirect', 'queued', '2015-02-12 21:17:11')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2274[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082198 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082477)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082477)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082198) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082198)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082198 AND `dispatched_services`.`id` = 2274 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:11' WHERE `dispatched_services`.`id` = 2274
[1m[36m (67.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082198 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082477 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082477)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082198 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082198 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082477[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082198[0m
[1m[35m (30.3ms)[0m COMMIT
Completed 200 OK in 279ms (Views: 22.3ms | ActiveRecord: 202.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '52e700fab3d28663a692bf95b1db79bb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082478, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082478, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082478, '52e700fab3d28663a692bf95b1db79bb')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082199[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:12', NULL, 969082199, 'BorrowDirect', 'queued', '2015-02-12 21:17:12')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:12' WHERE `dispatched_services`.`id` = 2275
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082199 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082478)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082478)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082199) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082199)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082199 AND `dispatched_services`.`id` = 2275 AND `dispatched_services`.`status` IN ('queued')
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:12' WHERE `dispatched_services`.`id` = 2275[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082199 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082478 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082478)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082199 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082199 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082478
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082199
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 204ms (Views: 20.9ms | ActiveRecord: 130.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '126e49933772e4cf164ea8c229aad94a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082479, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082479, '9789810743734')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (3.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082479, '126e49933772e4cf164ea8c229aad94a')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082200
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:12', NULL, 969082200, 'BorrowDirect', 'queued', '2015-02-12 21:17:12')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:12' WHERE `dispatched_services`.`id` = 2276[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082200 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082479)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082479)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082200) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082200)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082200 AND `dispatched_services`.`id` = 2276 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: BorrowDirect, NoMethodError undefined method `gsub!' for [nil, nil]:Array. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in `normalized_title'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in `normalized_author_title_params'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in `normalized_author_title_query'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:147:in `make_link_to_search_response'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:66:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: NoMethodError\n:message: !binary |-\n dW5kZWZpbmVkIG1ldGhvZCBgZ3N1YiEnIGZvciBbbmlsLCBuaWxdOkFycmF5\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:95:in\n `normalized_title\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:70:in\n `normalized_author_title_params\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/generate_query.rb:85:in\n `normalized_author_title_query\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:147:in\n `make_link_to_search_response\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:66:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:12' WHERE `dispatched_services`.`id` = 2276
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082200 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082479 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082479)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082200 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082200 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082479[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082200[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 208ms (Views: 20.8ms | ActiveRecord: 132.5ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85fa73b4c2d27945005aa61ebf678c9b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082480, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082480, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082480, '85fa73b4c2d27945005aa61ebf678c9b')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082201 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6b0236949463e467672378ec0d66e296' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '000000000')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082481, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '000000000', 969082481, '000000000')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082481, '6b0236949463e467672378ec0d66e296')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082202 ORDER BY id ASC
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed621808b5ef3697655f3255b4f91d04' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082482, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082482, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082482, 'ed621808b5ef3697655f3255b4f91d04')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082203 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a9d2206315df41cea8c5fcaa16ff215' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '0109836413')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082483, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '0109836413', 969082483, '0109836413')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082483, '0a9d2206315df41cea8c5fcaa16ff215')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082204 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b505853a172a3be130c8990ae8662053' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:12', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082484, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'isbn', 1, '9789810743734', 969082484, '9789810743734')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082484, 'b505853a172a3be130c8990ae8662053')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082205 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '486ad445523ed8c75a7277b66eb16dba' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:12', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082485, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'title', 1, 'title', 969082485, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'author', 1, 'au', 969082485, 'au')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082485, '486ad445523ed8c75a7277b66eb16dba')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:12', 969082206, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e5aa8c7a5cbca292b7e58680e250a703' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 21:17:12', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'book', 969082486, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'auinit', 1, 'eh', 969082486, 'EH')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'aulast', 1, 'lenneberg', 969082486, 'Lenneberg')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'title', 1, 'biological foundations of language', 969082486, 'Biological foundations of language')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'genre', 1, 'book', 969082486, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'date', 1, '1967', 969082486, '1967')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 21:17:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082486, 'info:sid/google', 'e5aa8c7a5cbca292b7e58680e250a703')[0m
[1m[35m (26.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082207 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3efbc6dfd4f966c9cd857d447660e13' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 21:17:12', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'format', 'journal', 969082487, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'auinit', 1, 'rd', 969082487, 'RD')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'aulast', 1, 'kaplan', 969082487, 'Kaplan')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'atitle', 1, 'the coming anarchy', 969082487, 'The coming anarchy')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'title', 1, 'the atlantic monthly', 969082487, 'The Atlantic monthly')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'volume', 1, '273', 969082487, '273')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'issue', 1, '2', 969082487, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'date', 1, '1994', 969082487, '1994')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'spage', 1, '44', 969082487, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:12', 'issn', 1, '1072-7825', 969082487, '1072-7825')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082487, 'info:sid/google', 'c3efbc6dfd4f966c9cd857d447660e13')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082208 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:13', NULL, 969082208, 'test_bd', 'successful', '2015-02-12 21:17:13')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:13' WHERE `dispatched_services`.`id` = 2277
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082208
[1m[36mServiceResponse Exists (1.5ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082208 LIMIT 1[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77c7820b37489327ea240350a40126c9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:13', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082488, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082488, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'aulast', 1, 'grimes', 969082488, 'Grimes')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082488, '77c7820b37489327ea240350a40126c9')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ca603079ef3e4a0056f4f505674663f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:13', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082489, 'journal')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'isbn', 1, '121212', 969082489, '121212')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082489, '8ca603079ef3e4a0056f4f505674663f')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082210"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082210 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082210 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082210
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082210, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082210\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082489 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082489)
Redirected to http://test.host/resolve?umlaut.request_id=969082210&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.5ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fadf9bad735d40a14a25ddc121f8d9f8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:13', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082490, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'isbn', 1, '121212', 969082490, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082490, 'fadf9bad735d40a14a25ddc121f8d9f8')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082211, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082211"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082211 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082211 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013121
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082211, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013121\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082490 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082490)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082211&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd31e65869b66868721479599673f3d47' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:13', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082491, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'isbn', 1, '121212', 969082491, '121212')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082491, 'd31e65869b66868721479599673f3d47')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082212, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082212"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082212 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082212 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:13', NULL, 969082212, 'BorrowDirect', 'in_progress', '2015-02-12 21:17:13')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:13' WHERE `dispatched_services`.`id` = 2278[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082212, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082491 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082491)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082212&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 71ms (ActiveRecord: 56.2ms)
[1m[35mDispatchedService Load (6.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082212
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082212 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082212 ORDER BY id ASC
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:13' WHERE `dispatched_services`.`id` = 2278
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013124[0m
[1m[35m (14.6ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2affb566249721659ca2ef0ac12c0b8a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (3.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:13', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'format', 'journal', 969082492, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:13', 'isbn', 1, '121212', 969082492, '121212')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082492, '2affb566249721659ca2ef0ac12c0b8a')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082213"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082213 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082213 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:13', 969082213, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082492 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082492)
Redirected to http://test.host/resolve?umlaut.request_id=969082213&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 78ms (ActiveRecord: 28.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbc555a14514d42e71d1d83f944f598c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:35', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'format', 'journal', 969082493, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'title', 1, 'title', 969082493, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'author', 1, 'au', 969082493, 'au')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082493, 'bbc555a14514d42e71d1d83f944f598c')
[1m[36m (13.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:35', 969082214, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082214 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082214 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:35', NULL, 969082214, 'test_bd', 'successful', '2015-02-12 21:17:35')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:35' WHERE `dispatched_services`.`id` = 2279[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082214[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc775f87bbf8c11c5a162d771e4f6371' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:35', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'format', 'journal', 969082494, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'title', 1, 'title', 969082494, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'author', 1, 'au', 969082494, 'au')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082494, 'bc775f87bbf8c11c5a162d771e4f6371')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:35', 969082215, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082215 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082215, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082215 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:35', NULL, 969082215, 'test_bd', 'successful', '2015-02-12 21:17:35')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:35' WHERE `dispatched_services`.`id` = 2280
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082215
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7234d032811f07f359243b557157eb87' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:35', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'format', 'journal', 969082495, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'title', 1, 'title', 969082495, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'author', 1, 'au', 969082495, 'au')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082495, '7234d032811f07f359243b557157eb87')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:35', 969082216, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082216 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082216, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082216 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:35', NULL, 969082216, 'test_bd', 'successful', '2015-02-12 21:17:35')
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:35' WHERE `dispatched_services`.`id` = 2281[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082216[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca1a08b2796b65c507e6fd1c111ea6d2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:35', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'format', 'journal', 969082496, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'title', 1, 'title', 969082496, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:35', 'author', 1, 'au', 969082496, 'au')[0m
[1m[35m (40.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-12 21:17:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082496, 'ca1a08b2796b65c507e6fd1c111ea6d2')
[1m[36m (36.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082217, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (13.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082217, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082217 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:36', NULL, 969082217, 'test_bd', 'successful', '2015-02-12 21:17:36')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2282[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082217[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082217 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a6ea9d3516a86e284e157e91934b0581' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:36', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082497, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082497, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'aulast', 1, 'grimes', 969082497, 'Grimes')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082497, 'a6ea9d3516a86e284e157e91934b0581')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082218, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082218 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8cfa4e50b57d29391c29a2a8a40d7c2' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-12 21:17:36', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082498, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'auinit', 1, 'rd', 969082498, 'RD')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'aulast', 1, 'kaplan', 969082498, 'Kaplan')
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'atitle', 1, 'the coming anarchy', 969082498, 'The coming anarchy')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'title', 1, 'the atlantic monthly', 969082498, 'The Atlantic monthly')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'volume', 1, '273', 969082498, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'issue', 1, '2', 969082498, '2')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'date', 1, '1994', 969082498, '1994')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'spage', 1, '44', 969082498, '44')
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'issn', 1, '1072-7825', 969082498, '1072-7825')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082498, 'info:sid/google', 'd8cfa4e50b57d29391c29a2a8a40d7c2')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082219 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:36', NULL, 969082219, 'test_bd', 'successful', '2015-02-12 21:17:36')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2283[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082219[0m
[1m[35mServiceResponse Exists (1.6ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082219 LIMIT 1
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64b21d2d905837c2efdb1edde10f9c5a' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-12 21:17:36', 'biological foundations of language', '1967')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'book', 969082499, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'auinit', 1, 'eh', 969082499, 'EH')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'aulast', 1, 'lenneberg', 969082499, 'Lenneberg')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'title', 1, 'biological foundations of language', 969082499, 'Biological foundations of language')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'genre', 1, 'book', 969082499, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'date', 1, '1967', 969082499, '1967')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082499, 'info:sid/google', '64b21d2d905837c2efdb1edde10f9c5a')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082220 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082220, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (13.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082220 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:36', NULL, 969082220, 'test_bd', 'successful', '2015-02-12 21:17:36')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2284[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082220[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 49ms (Views: 48.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.4ms | ActiveRecord: 1.6ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '28699752f1c68e1bc459faa20d6c05e9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:36', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082500, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'isbn', 1, '121212', 969082500, '121212')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082500, '28699752f1c68e1bc459faa20d6c05e9')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082221"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082221 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082221 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082221
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082221, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082221\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082500 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082500)
Redirected to http://test.host/resolve?umlaut.request_id=969082221&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 38ms (ActiveRecord: 24.3ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a607a0deda4b81c6e9feb59192f41e0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:36', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082501, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'isbn', 1, '121212', 969082501, '121212')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082501, '8a607a0deda4b81c6e9feb59192f41e0')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082222, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082222"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082222 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082222 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013136
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082222, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013136\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082501 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082501)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082222&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 24.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23014f0b39acaec1ed0d942aa3987796' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:36', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082502, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'isbn', 1, '121212', 969082502, '121212')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082502, '23014f0b39acaec1ed0d942aa3987796')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082223, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082223"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082223 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082223 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082223 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:36', NULL, 969082223, 'BorrowDirect', 'in_progress', '2015-02-12 21:17:36')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2285[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:36', 969082223, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082502 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082502)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082223&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 74ms (ActiveRecord: 58.7ms)
[1m[35mDispatchedService Load (6.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082223
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082223 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082223 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:36' WHERE `dispatched_services`.`id` = 2285
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013139[0m
[1m[35m (14.9ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94ab48a4829c0799eab6562140bb7498' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:36', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'format', 'journal', 969082503, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:36', 'isbn', 1, '121212', 969082503, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-12 21:17:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082503, '94ab48a4829c0799eab6562140bb7498')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082224"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082224 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082224 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:37', 969082224, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082503 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082503)
Redirected to http://test.host/resolve?umlaut.request_id=969082224&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 40ms (ActiveRecord: 32.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6ba63d609175c031457d196459f310f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:37', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'format', 'journal', 969082504, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'isbn', 1, '9789810743734', 969082504, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082504, 'd6ba63d609175c031457d196459f310f')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082225[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:37', NULL, 969082225, 'test_bd', 'queued', '2015-02-12 21:17:37')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2286
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082225 LIMIT 1
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082504)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082504)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082225) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082225)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082225 AND `dispatched_services`.`id` = 2286 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082225, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2286
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082225 LIMIT 1
[1m[36mDispatchedService Load (42.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082504 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082504)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082225 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082225 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082504
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082225
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 396ms (Views: 136.3ms | ActiveRecord: 121.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-12 16:17:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd1809669d2f385b13c77e9ccbafc9db' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:37', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'format', 'book', 969082505, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'genre', 1, 'book', 969082505, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'author', 1, 'smith', 969082505, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'title', 1, 'some book', 969082505, 'Some Book')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-12 21:17:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082505, 'cd1809669d2f385b13c77e9ccbafc9db')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082226
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:37', NULL, 969082226, 'BorrowDirect', 'queued', '2015-02-12 21:17:37')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2287[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082226 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082505)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082505)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082226) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082226)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082226 AND `dispatched_services`.`id` = 2287 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082226, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2287[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082226 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082505 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082505)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082226 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082226 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082505
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082226
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 237ms (Views: 20.6ms | ActiveRecord: 121.2ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-12 16:17:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43e6050a117b23299c0ee007267f7820' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:37', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'format', 'journal', 969082506, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'genre', 1, 'article', 969082506, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'title', 1, 'foo', 969082506, 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:37', 'author', 1, 'bar', 969082506, 'bar')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-12 21:17:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082506, '43e6050a117b23299c0ee007267f7820')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082227
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:37', NULL, 969082227, 'BorrowDirect', 'queued', '2015-02-12 21:17:37')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2288[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082227 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082506)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082506)[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082227) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082227)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082227 AND `dispatched_services`.`id` = 2288 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:37' WHERE `dispatched_services`.`id` = 2288
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082227 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082506 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082506)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082227 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082227 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082506[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082227[0m
[1m[35m (17.0ms)[0m COMMIT
Completed 200 OK in 208ms (Views: 17.7ms | ActiveRecord: 117.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '13c941aaf34cb179f09d3f8f210d0090' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-12 21:17:38', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'format', 'book', 969082507, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'genre', 1, 'book', 969082507, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'title', 1, 'foo', 969082507, 'foo')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-12 21:17:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082507, '13c941aaf34cb179f09d3f8f210d0090')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082228 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:38', NULL, 969082228, 'BorrowDirect', 'failed_fatal', '2015-02-12 21:17:38')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2289
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082228" for 127.0.0.1 at 2015-02-12 16:17:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082228"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082228 LIMIT 1
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082507 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082507)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082228
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082228
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082228 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082228 [["request_id", 969082228]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082507 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082507)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082228 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082228 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082507[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082228[0m
[1m[35m (14.1ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 18.7ms | ActiveRecord: 46.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9541047a857bd98df8ab809732f07730' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:38', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'format', 'journal', 969082508, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'isbn', 1, '9789810743734', 969082508, '9789810743734')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082508, '9541047a857bd98df8ab809732f07730')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082229[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:38', NULL, 969082229, 'BorrowDirect', 'queued', '2015-02-12 21:17:38')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2290
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082508)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082229) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082229)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`id` = 2290 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082229, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:38', 'Choose your delivery location', 969082229, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2290[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082508 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082229 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082508[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082229[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 259ms (Views: 26.5ms | ActiveRecord: 113.3ms)
Started GET "/borrow_direct/BorrowDirect/969082229?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-12 16:17:38 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082229"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082229 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2290[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:38', 969082229, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082508 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082229&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 38.0ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in `block in submit_request'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:47:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2290
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013145[0m
[1m[35m (14.9ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082229&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-12 16:17:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082229", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-12T16:17:38-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082508 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082229[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082229 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229[0m [["request_id", 969082229]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082508 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082508)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082229 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082229 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082508
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082229
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 23.2ms | ActiveRecord: 43.5ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-12 16:17:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e036bdad1458b77bbe0d94ea16e6455f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:38', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'format', 'journal', 969082509, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'isbn', 1, '0109836413', 969082509, '0109836413')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 21:17:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082509, 'e036bdad1458b77bbe0d94ea16e6455f')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082230
[1m[36m (26.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:38', NULL, 969082230, 'BorrowDirect', 'queued', '2015-02-12 21:17:38')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2291[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082230 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082509)
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082509)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082230) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082230)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082230 AND `dispatched_services`.`id` = 2291 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082230, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:38', 'This item is not currently available from BorrowDirect', 969082230, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:38' WHERE `dispatched_services`.`id` = 2291
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082230 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082509 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082509)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082230 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082230 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082509[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082230[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 312ms (Views: 21.2ms | ActiveRecord: 124.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d6c6f9673b00769f7975064e2a8b326' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:38', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'format', 'journal', 969082510, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:38', 'isbn', 1, '9789810743734', 969082510, '9789810743734')[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082510, '6d6c6f9673b00769f7975064e2a8b326')
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082231[0m
[1m[35m (13.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:39', NULL, 969082231, 'BorrowDirect', 'queued', '2015-02-12 21:17:39')[0m
[1m[35m (13.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2292
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082510)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082231) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082231)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (26.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`id` = 2292 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082231, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:39', 'Choose your delivery location', 969082231, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2292[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082510 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082231 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.6ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082510[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082231[0m
[1m[35m (15.6ms)[0m COMMIT
Completed 200 OK in 258ms (Views: 23.0ms | ActiveRecord: 109.6ms)
Started GET "/borrow_direct/BorrowDirect/969082231?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-12 16:17:39 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082231"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082231 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2292[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:39', 969082231, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082510 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082231&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 55ms (ActiveRecord: 39.5ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2292
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013150[0m
[1m[35m (14.4ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082231&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-12 16:17:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082231", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-12T16:17:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082510 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082231[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082231 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231[0m [["request_id", 969082231]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082510 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082510)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.9ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082231 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082231 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082510
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082231
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 76ms (Views: 20.1ms | ActiveRecord: 45.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37c1dbfaae413784ae6d71f405b7e10d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:39', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:39', 'format', 'journal', 969082511, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:39', 'isbn', 1, '9789810743734', 969082511, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082511, '37c1dbfaae413784ae6d71f405b7e10d')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082232
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:39', NULL, 969082232, 'BorrowDirect', 'queued', '2015-02-12 21:17:39')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2293[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082232 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082511)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082511)[0m
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082232) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082232)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082232 AND `dispatched_services`.`id` = 2293 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082232, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:39', 'Choose your delivery location', 969082232, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2293
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082232 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082511 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082511)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.9ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082232 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082232 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082232 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082511
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082232
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 301ms (Views: 25.6ms | ActiveRecord: 113.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-12 16:17:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd98b6c932cbc1f8dad1ec865c2aec0fd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:39', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:39', 'format', 'journal', 969082512, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:39', 'isbn', 1, '9789810743734', 969082512, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082512, 'd98b6c932cbc1f8dad1ec865c2aec0fd')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082233
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:39', NULL, 969082233, 'BorrowDirect', 'queued', '2015-02-12 21:17:39')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2294[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082512)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512)[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082233) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082233)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`id` = 2294 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082233, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:39', 'Choose your delivery location', 969082233, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-12 21:17:39' WHERE `dispatched_services`.`id` = 2294
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082512 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082233 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082512
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082233
[1m[36m (13.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 255ms (Views: 24.8ms | ActiveRecord: 115.3ms)
Started GET "/borrow_direct/BorrowDirect/969082233" for 127.0.0.1 at 2015-02-12 16:17:40 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082233"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082233 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:40', 969082233, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082512 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082233&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 19.8ms)
Started GET "/resolve?umlaut.request_id=969082233&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-12T16%3A17%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-12 16:17:40 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082233", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-12T16:17:40-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082512 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082233[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233[0m [["request_id", 969082233]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082512 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082512)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082233 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082233 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082233 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082512[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082233[0m
[1m[35m (13.7ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 23.6ms | ActiveRecord: 40.2ms)
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f6535564c09dcb57913fad59ba8efaf1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082513, 'journal')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '9789810743734', 969082513, '9789810743734')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082513, 'f6535564c09dcb57913fad59ba8efaf1')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082234 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082234, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082234 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082234, 'test_bd', 'failed_temporary', '2015-02-12 21:17:40')
[1m[36m (13.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2295[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082234[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2a65341784abc0ad91c450441d67672' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '000000000')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082514, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '000000000', 969082514, '000000000')
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082514, 'b2a65341784abc0ad91c450441d67672')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082235 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082235, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:40', 'This item is not currently available from BorrowDirect', 969082235, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082235 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082235, 'test_bd', 'successful', '2015-02-12 21:17:40')
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2296[0m
[1m[35m (13.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082235[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8547c6fbbdd82eeb72f1b91805cbfab0' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082515, 'journal')[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '0109836413', 969082515, '0109836413')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082515, '8547c6fbbdd82eeb72f1b91805cbfab0')[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082236 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082236, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:40', 'This item is not currently available from BorrowDirect', 969082236, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (13.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082236 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082236, 'test_bd', 'successful', '2015-02-12 21:17:40')
[1m[36m (13.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2297[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082236[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c239a6cb99a886da99f8e7f8bacc6fe7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '9789810743734')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082516, 'journal')[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '9789810743734', 969082516, '9789810743734')
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082516, 'c239a6cb99a886da99f8e7f8bacc6fe7')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082237 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082237, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-12 21:17:40', 'Choose your delivery location', 969082237, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082237 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082237, 'test_bd', 'successful', '2015-02-12 21:17:40')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2298[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082237[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c23f36bc42240bf5d451069fb9b35d74' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-12 21:17:40', '9789810743734')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'format', 'journal', 969082517, 'journal')[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-12 21:17:40', 'isbn', 1, '9789810743734', 969082517, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-12 21:17:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082517, 'c23f36bc42240bf5d451069fb9b35d74')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082238 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-12 21:17:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082238, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (13.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082238 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-12 21:17:40', NULL, 969082238, 'test_bd', 'successful', '2015-02-12 21:17:40')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-12 21:17:40' WHERE `dispatched_services`.`id` = 2299
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082238
[1m[36mActiveRecord::SchemaMigration Load (11.5ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd50233db5fefb2639ef84ded28239ebc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:39', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:39', 'format', 'journal', 969082518, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:39', 'isbn', 1, '9789810743734', 969082518, '9789810743734')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082518, 'd50233db5fefb2639ef84ded28239ebc')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082239 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082239, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082239 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:39', NULL, 969082239, 'test_bd', 'failed_temporary', '2015-02-19 22:58:39')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 22:58:39' WHERE `dispatched_services`.`id` = 2300
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082239
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca3228d89a1fec6ae7e83ee9eb145f39' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:39', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:39', 'format', 'journal', 969082519, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:39', 'isbn', 1, '9789810743734', 969082519, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082519, 'ca3228d89a1fec6ae7e83ee9eb145f39')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082240 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082240, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 'Choose your delivery location', 969082240, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082240 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082240, 'test_bd', 'successful', '2015-02-19 22:58:40')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2301
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082240
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd3eed8c498228afcf2ae10fd75ed73a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082520, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '0109836413', 969082520, '0109836413')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082520, 'dd3eed8c498228afcf2ae10fd75ed73a')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082241 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082241, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 'This item is not currently available from BorrowDirect', 969082241, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082241 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082241, 'test_bd', 'successful', '2015-02-19 22:58:40')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2302
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082241
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8af8b9cdcc624f4db99f6735faec815a' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '000000000')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082521, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '000000000', 969082521, '000000000')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082521, '8af8b9cdcc624f4db99f6735faec815a')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082242 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082242, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 'This item is not currently available from BorrowDirect', 969082242, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082242 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082242, 'test_bd', 'successful', '2015-02-19 22:58:40')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2303
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082242
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '909e082af1e537e8b70ab91852c9ff46' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:40', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082522, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082522, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'aulast', 1, 'grimes', 969082522, 'Grimes')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082522, '909e082af1e537e8b70ab91852c9ff46')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082243, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082243 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e8ff7b8c60db34295518af340b5b436' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 22:58:40', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082523, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'auinit', 1, 'rd', 969082523, 'RD')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'aulast', 1, 'kaplan', 969082523, 'Kaplan')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'atitle', 1, 'the coming anarchy', 969082523, 'The coming anarchy')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'title', 1, 'the atlantic monthly', 969082523, 'The Atlantic monthly')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'volume', 1, '273', 969082523, '273')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'issue', 1, '2', 969082523, '2')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'date', 1, '1994', 969082523, '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'spage', 1, '44', 969082523, '44')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'issn', 1, '1072-7825', 969082523, '1072-7825')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082523, 'info:sid/google', '4e8ff7b8c60db34295518af340b5b436')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082244 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082244, 'test_bd', 'successful', '2015-02-19 22:58:40')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2304[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082244[0m
[1m[35mServiceResponse Exists (1.7ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082244 LIMIT 1
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ff7190efd1837686c9cfffd2378b6e8' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 22:58:40', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'book', 969082524, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'auinit', 1, 'eh', 969082524, 'EH')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'aulast', 1, 'lenneberg', 969082524, 'Lenneberg')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'title', 1, 'biological foundations of language', 969082524, 'Biological foundations of language')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'genre', 1, 'book', 969082524, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'date', 1, '1967', 969082524, '1967')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082524, 'info:sid/google', '0ff7190efd1837686c9cfffd2378b6e8')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082245 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082245, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082245 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:40', NULL, 969082245, 'test_bd', 'successful', '2015-02-19 22:58:40')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:40' WHERE `dispatched_services`.`id` = 2305[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082245[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 56ms (Views: 55.3ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.4ms | ActiveRecord: 1.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81cc1ab76b1e6816f80157a3104b9666' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082525, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '121212', 969082525, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082525, '81cc1ab76b1e6816f80157a3104b9666')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082246"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082246 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082246 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082246
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 969082246, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082246\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082525 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082525)
Redirected to http://test.host/resolve?umlaut.request_id=969082246&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 40ms (ActiveRecord: 22.6ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '13fae8d809867696062774bca1eb3151' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082526, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '121212', 969082526, '121212')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082526, '13fae8d809867696062774bca1eb3151')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 969082247, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082247"}
[1m[36mRequest Load (2.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082247 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082247 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013174
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:40', 969082247, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013174\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082526 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082526)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082247&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b0bdffbf53ef8692229169c284f8141a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:40', '121212')
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'format', 'journal', 969082527, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:40', 'isbn', 1, '121212', 969082527, '121212')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 22:58:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082527, 'b0bdffbf53ef8692229169c284f8141a')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082248, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082248"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082248 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082248 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082248 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082248, 'BorrowDirect', 'in_progress', '2015-02-19 22:58:41')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2306[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082248, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082527 LIMIT 1
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082527)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082248&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 71ms (ActiveRecord: 60.9ms)
[1m[35mDispatchedService Load (3.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082248
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082248 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082248 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2306
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013177[0m
[1m[35m (14.2ms)[0m COMMIT
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9bc01e96fe421334a1d63d967e741d39' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:41', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082528, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'isbn', 1, '121212', 969082528, '121212')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 22:58:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082528, '9bc01e96fe421334a1d63d967e741d39')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082249"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082249 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082249 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082249, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082528 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082528)
Redirected to http://test.host/resolve?umlaut.request_id=969082249&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 73ms (ActiveRecord: 31.5ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aa1828acd2ead7611f7d48ea75eb5009' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:41', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082529, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'title', 1, 'title', 969082529, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'author', 1, 'au', 969082529, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 22:58:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082529, 'aa1828acd2ead7611f7d48ea75eb5009')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082250, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082250 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082250, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082250 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082250, 'test_bd', 'successful', '2015-02-19 22:58:41')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2307[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082250[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d34fac454275a286ca97471d4c45566' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:41', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082530, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'title', 1, 'title', 969082530, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'author', 1, 'au', 969082530, 'au')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 22:58:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082530, '6d34fac454275a286ca97471d4c45566')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082251, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082251 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082251 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082251, 'test_bd', 'successful', '2015-02-19 22:58:41')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2308[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082251[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba96cced6f934919ab95aa3bfcdc4c2c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:41', 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082531, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'title', 1, 'title', 969082531, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'author', 1, 'au', 969082531, 'au')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 22:58:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082531, 'ba96cced6f934919ab95aa3bfcdc4c2c')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:41', 969082252, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082252 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082252, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082252 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082252, 'test_bd', 'successful', '2015-02-19 22:58:41')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2309
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082252
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:41 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ad68733fca5896b54289483fc4ca6501' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (3.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:41', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'format', 'journal', 969082532, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:41', 'isbn', 1, '9789810743734', 969082532, '9789810743734')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082532, 'ad68733fca5896b54289483fc4ca6501')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082253[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:41', NULL, 969082253, 'test_bd', 'queued', '2015-02-19 22:58:41')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2310
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082253 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082532)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082532)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082253) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082253)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082253 AND `dispatched_services`.`id` = 2310 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082253, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.1s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 22:58:41' WHERE `dispatched_services`.`id` = 2310
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082253 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082532 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082532)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082253 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (19.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (20.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082253 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms)
[1m[35mPermalink Load (1.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082532
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (53.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082253
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 580ms (Views: 260.9ms | ActiveRecord: 127.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 17:58:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (2.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c0dd691c826514a21dc6e5581f1b56e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:42', 'some book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'format', 'book', 969082533, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'genre', 1, 'book', 969082533, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'author', 1, 'smith', 969082533, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'title', 1, 'some book', 969082533, 'Some Book')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 22:58:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082533, '9c0dd691c826514a21dc6e5581f1b56e')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082254
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:42', NULL, 969082254, 'BorrowDirect', 'queued', '2015-02-19 22:58:42')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2311[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082254 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082533)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082533)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082254) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082254)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082254 AND `dispatched_services`.`id` = 2311 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082254, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2311[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082254 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082533 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082533)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082254 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082254 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082533
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082254
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 230ms (Views: 19.7ms | ActiveRecord: 119.0ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 17:58:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4d55d898cbc064609c3300daaeff187' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:42', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'format', 'journal', 969082534, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'genre', 1, 'article', 969082534, 'article')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'title', 1, 'foo', 969082534, 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'author', 1, 'bar', 969082534, 'bar')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 22:58:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082534, 'd4d55d898cbc064609c3300daaeff187')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082255
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:42', NULL, 969082255, 'BorrowDirect', 'queued', '2015-02-19 22:58:42')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2312[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082255 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082534)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082534)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082255) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082255)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082255 AND `dispatched_services`.`id` = 2312 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2312
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082255 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082534 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082534)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082255 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082255 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082534[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082255[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 203ms (Views: 16.6ms | ActiveRecord: 116.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24703cf57ba8207f7e8f901f859286c1' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:42', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'format', 'book', 969082535, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'genre', 1, 'book', 969082535, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'title', 1, 'foo', 969082535, 'foo')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 22:58:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082535, '24703cf57ba8207f7e8f901f859286c1')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082256 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:42', NULL, 969082256, 'BorrowDirect', 'failed_fatal', '2015-02-19 22:58:42')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:42' WHERE `dispatched_services`.`id` = 2313
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082256" for 127.0.0.1 at 2015-02-19 17:58:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082256"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082256 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082535 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082535)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082256
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082256
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082256 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082256 [["request_id", 969082256]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082535 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082535)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082256 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082256 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082535[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082256[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 72ms (Views: 18.6ms | ActiveRecord: 45.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fa9c3a0b50d8b3cbc83ea4b8d5ab27e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:42', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'format', 'journal', 969082536, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:42', 'isbn', 1, '9789810743734', 969082536, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082536, '8fa9c3a0b50d8b3cbc83ea4b8d5ab27e')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082257[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:43', NULL, 969082257, 'BorrowDirect', 'queued', '2015-02-19 22:58:43')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2314
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082536)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082257) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082257)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`id` = 2314 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082257, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:43', 'Choose your delivery location', 969082257, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2314[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082536 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082257 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (15.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (16.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082536[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082257[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 266ms (Views: 31.4ms | ActiveRecord: 118.1ms)
Started GET "/borrow_direct/BorrowDirect/969082257?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 17:58:43 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082257"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082257 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2314[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:43', 969082257, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082536 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082257&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 50ms (ActiveRecord: 40.7ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2314
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013188[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082257&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 17:58:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082257", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T17:58:43-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082536 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082257[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082257 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257[0m [["request_id", 969082257]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.1ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082536 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082536)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082257 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082257 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082536
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082257
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 116ms (Views: 63.3ms | ActiveRecord: 43.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 17:58:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6a0f90dc6eb717bd070e036361464e9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:43', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:43', 'format', 'journal', 969082537, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:43', 'isbn', 1, '0109836413', 969082537, '0109836413')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 22:58:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082537, 'b6a0f90dc6eb717bd070e036361464e9')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082258
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:43', NULL, 969082258, 'BorrowDirect', 'queued', '2015-02-19 22:58:43')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2315[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082258 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082537)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082537)[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082258) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082258)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082258 AND `dispatched_services`.`id` = 2315 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082258, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:43', 'This item is not currently available from BorrowDirect', 969082258, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2315
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082258 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082537 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082537)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082258 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082258 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082537[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082258[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 255ms (Views: 20.3ms | ActiveRecord: 112.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a34418a44002613ca4697eb216f3b11c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:43', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:43', 'format', 'journal', 969082538, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:43', 'isbn', 1, '9789810743734', 969082538, '9789810743734')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082538, 'a34418a44002613ca4697eb216f3b11c')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082259[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:43', NULL, 969082259, 'BorrowDirect', 'queued', '2015-02-19 22:58:43')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2316
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082538)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082259) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082259)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`id` = 2316 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082259, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:43', 'Choose your delivery location', 969082259, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:43' WHERE `dispatched_services`.`id` = 2316[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082538 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082259 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082538[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082259[0m
[1m[35m (17.3ms)[0m COMMIT
Completed 200 OK in 255ms (Views: 22.1ms | ActiveRecord: 116.6ms)
Started GET "/borrow_direct/BorrowDirect/969082259?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 17:58:44 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082259"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082259 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2316[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:44', 969082259, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082538 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082259&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 37.5ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2316
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013193[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082259&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 17:58:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082259", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T17:58:44-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082538 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082259[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082259 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259[0m [["request_id", 969082259]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (42.8ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082538 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082538)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082259 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082259 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082538
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082259
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 118ms (Views: 61.9ms | ActiveRecord: 46.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8093e058ddc6b75af912a9e46f1bfaf8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:44', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'format', 'journal', 969082539, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'isbn', 1, '9789810743734', 969082539, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082539, '8093e058ddc6b75af912a9e46f1bfaf8')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082260
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:44', NULL, 969082260, 'BorrowDirect', 'queued', '2015-02-19 22:58:44')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2317[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082260 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082539)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082539)[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082260) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082260)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082260 AND `dispatched_services`.`id` = 2317 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082260, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:44', 'Choose your delivery location', 969082260, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2317
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082260 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082539 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082539)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082260 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082260 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082260 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082539
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082260
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 265ms (Views: 21.6ms | ActiveRecord: 115.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 17:58:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8288b647d11cfd49372c8fd5e2f05600' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:44', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'format', 'journal', 969082540, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'isbn', 1, '9789810743734', 969082540, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082540, '8288b647d11cfd49372c8fd5e2f05600')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082261
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:44', NULL, 969082261, 'BorrowDirect', 'queued', '2015-02-19 22:58:44')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2318[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082540)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082261) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082261)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`id` = 2318 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082261, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:44', 'Choose your delivery location', 969082261, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 22:58:44' WHERE `dispatched_services`.`id` = 2318
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082540 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082261 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082540
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082261
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 263ms (Views: 22.0ms | ActiveRecord: 116.4ms)
Started GET "/borrow_direct/BorrowDirect/969082261" for 127.0.0.1 at 2015-02-19 17:58:44 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082261"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082261 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:44', 969082261, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082540 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082261&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.0ms)
Started GET "/resolve?umlaut.request_id=969082261&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T17%3A58%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 17:58:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082261", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T17:58:44-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082540 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082261[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261[0m [["request_id", 969082261]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082540 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082540)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082261 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082261 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (47.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (48.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082261 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082540[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082261[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 119ms (Views: 65.4ms | ActiveRecord: 44.4ms)
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '787d779a981676eebf4f6150a9b91607' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 22:58:44', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'format', 'journal', 969082541, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:44', 'isbn', 1, '9789810743734', 969082541, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 22:58:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082541, '787d779a981676eebf4f6150a9b91607')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082262 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082262, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082262 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:45', NULL, 969082262, 'test_bd', 'successful', '2015-02-19 22:58:45')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:45' WHERE `dispatched_services`.`id` = 2319[0m
[1m[35m (61.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082262[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.8ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a10d4defb507b942fe3a098b8574e8b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 22:58:45', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:45', 'format', 'journal', 969082542, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:45', 'title', 1, 'title', 969082542, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 22:58:45', 'author', 1, 'au', 969082542, 'au')[0m
[1m[35m (41.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 22:58:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082542, '8a10d4defb507b942fe3a098b8574e8b')
[1m[36m (43.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 22:58:45', 969082263, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (44.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 22:58:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082263, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082263 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 22:58:45', NULL, 969082263, 'test_bd', 'successful', '2015-02-19 22:58:45')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 22:58:45' WHERE `dispatched_services`.`id` = 2320[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082263[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082263 ORDER BY id ASC
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 50ms (Views: 11.3ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 66ms (Views: 0.4ms | ActiveRecord: 6.7ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63135940df69872eb6181048a726e9d0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:32', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'format', 'journal', 969082543, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'isbn', 1, '121212', 969082543, '121212')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082543, '63135940df69872eb6181048a726e9d0')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082264"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082264 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082264 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082264
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082264, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082264\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082543 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082543)
Redirected to http://test.host/resolve?umlaut.request_id=969082264&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 55ms (ActiveRecord: 30.0ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2fe687be872ff13b4bda7e06150787c2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:32', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'format', 'journal', 969082544, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'isbn', 1, '121212', 969082544, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082544, '2fe687be872ff13b4bda7e06150787c2')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082265, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082265"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082265 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082265 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013203
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082265, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013203\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082544 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082544)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082265&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 24.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9346ff43cb143dd38c1ae2940551d04' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:32', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'format', 'journal', 969082545, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:32', 'isbn', 1, '121212', 969082545, '121212')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082545, 'a9346ff43cb143dd38c1ae2940551d04')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082266, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082266"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082266 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082266 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082266 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:32', NULL, 969082266, 'BorrowDirect', 'in_progress', '2015-02-19 23:00:32')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:32' WHERE `dispatched_services`.`id` = 2321[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:32', 969082266, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082545 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082545)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082266&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 115ms (ActiveRecord: 61.9ms)
[1m[35mDispatchedService Load (4.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082266
[1m[36mServiceResponse Load (6.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082266 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082266 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2321
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013206[0m
[1m[35m (14.2ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3e2908945b47ca10bb05610c677a995' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082546, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '121212', 969082546, '121212')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082546, 'b3e2908945b47ca10bb05610c677a995')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 969082267, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082267"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082267 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082267 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082267 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082267, 'BorrowDirect', 'in_progress', '2015-02-19 23:00:33')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2322
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 969082267, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082546 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082546)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082267&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 73ms (ActiveRecord: 62.3ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5cfe51215f941cc5b6fa6c9f02a7b67f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082547, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '121212', 969082547, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082547, '5cfe51215f941cc5b6fa6c9f02a7b67f')
[1m[36m (46.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082268"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082268 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082268 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 969082268, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082547 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082547)
Redirected to http://test.host/resolve?umlaut.request_id=969082268&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 23.1ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1eb9cc8cfab41a86a9f9b2bc4dee78ef' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082548, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '9789810743734', 969082548, '9789810743734')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082548, '1eb9cc8cfab41a86a9f9b2bc4dee78ef')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082269 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082269, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082269 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082269, 'test_bd', 'successful', '2015-02-19 23:00:33')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (3.2ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2323[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082269[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecc8ba54f13cbf9f22e563c34eb4adae' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082549, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '9789810743734', 969082549, '9789810743734')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082549, 'ecc8ba54f13cbf9f22e563c34eb4adae')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082270 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082270, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 'Choose your delivery location', 969082270, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082270 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082270, 'test_bd', 'successful', '2015-02-19 23:00:33')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2324[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082270[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11489b63aa60785d32ddd8e51a9e7180' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082550, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '0109836413', 969082550, '0109836413')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082550, '11489b63aa60785d32ddd8e51a9e7180')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082271 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082271, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 'This item is not currently available from BorrowDirect', 969082271, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082271 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082271, 'test_bd', 'successful', '2015-02-19 23:00:33')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2325[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082271[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a1ed65fdb453f7e63b07f0a4ccc5e06' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082551, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '9789810743734', 969082551, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082551, '6a1ed65fdb453f7e63b07f0a4ccc5e06')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082272 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082272, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082272 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082272, 'test_bd', 'failed_temporary', '2015-02-19 23:00:33')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2326
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082272
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54b3481ca0adce13a8c5754c4d01c14f' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:33', '000000000')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'format', 'journal', 969082552, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:33', 'isbn', 1, '000000000', 969082552, '000000000')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:00:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082552, '54b3481ca0adce13a8c5754c4d01c14f')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082273 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082273, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:33', 'This item is not currently available from BorrowDirect', 969082273, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082273 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:33', NULL, 969082273, 'test_bd', 'successful', '2015-02-19 23:00:33')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:33' WHERE `dispatched_services`.`id` = 2327
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082273
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5fcad0be784b32923a164fc22866d763' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:34', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'journal', 969082553, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'title', 1, 'title', 969082553, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'author', 1, 'au', 969082553, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:00:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082553, '5fcad0be784b32923a164fc22866d763')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:34', 969082274, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082274 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082274, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082274 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082274, 'test_bd', 'successful', '2015-02-19 23:00:34')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2328[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082274[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f5ecb7d8391ad92dea344a9db079996' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:34', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'journal', 969082554, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'title', 1, 'title', 969082554, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'author', 1, 'au', 969082554, 'au')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:00:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082554, '9f5ecb7d8391ad92dea344a9db079996')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:34', 969082275, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082275 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082275, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082275 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082275, 'test_bd', 'successful', '2015-02-19 23:00:34')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2329
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082275
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2094b80623621c7febe8630f206b77fc' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:34', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'journal', 969082555, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'title', 1, 'title', 969082555, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'author', 1, 'au', 969082555, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:00:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082555, '2094b80623621c7febe8630f206b77fc')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:34', 969082276, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082276 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082276 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082276, 'test_bd', 'successful', '2015-02-19 23:00:34')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2330
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082276
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8226aa7dc30c533e89d760835d7592d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:34', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'journal', 969082556, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'isbn', 1, '9789810743734', 969082556, '9789810743734')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082556, 'a8226aa7dc30c533e89d760835d7592d')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082277[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082277, 'test_bd', 'queued', '2015-02-19 23:00:34')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2331
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082277 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082556)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082556)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082277) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082277)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082277 AND `dispatched_services`.`id` = 2331 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082277, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2331
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082277 LIMIT 1
[1m[36mDispatchedService Load (7.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082556 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082556)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082277 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082277 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082556[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (44.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082277[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 412ms (Views: 132.5ms | ActiveRecord: 117.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:00:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fae22d4d1f7f52d5e0fabf27b325e6f0' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:34', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'format', 'book', 969082557, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'genre', 1, 'book', 969082557, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'author', 1, 'smith', 969082557, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:34', 'title', 1, 'some book', 969082557, 'Some Book')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:00:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082557, 'fae22d4d1f7f52d5e0fabf27b325e6f0')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082278[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:34', NULL, 969082278, 'BorrowDirect', 'queued', '2015-02-19 23:00:34')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:34' WHERE `dispatched_services`.`id` = 2332
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082278 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082557)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082557)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082278) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082278)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082278 AND `dispatched_services`.`id` = 2332 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082278, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2332
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082278 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082557 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082557)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082278 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082278 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082557[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082278[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 271ms (Views: 20.6ms | ActiveRecord: 121.9ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:00:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c7f038dc40c28d41d5172f72b5fe607' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:35', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'format', 'journal', 969082558, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'genre', 1, 'article', 969082558, 'article')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'title', 1, 'foo', 969082558, 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'author', 1, 'bar', 969082558, 'bar')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:00:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082558, '9c7f038dc40c28d41d5172f72b5fe607')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082279[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:35', NULL, 969082279, 'BorrowDirect', 'queued', '2015-02-19 23:00:35')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2333
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082279 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082558)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082558)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082279) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082279)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082279 AND `dispatched_services`.`id` = 2333 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2333[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082279 LIMIT 1[0m
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.9ms)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082558 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082558)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082279 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082279 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082558
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082279
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 204ms (Views: 16.9ms | ActiveRecord: 116.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69c3c711e70da37c0bf6b2fed8ebd785' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:35', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'format', 'book', 969082559, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'genre', 1, 'book', 969082559, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'title', 1, 'foo', 969082559, 'foo')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:00:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082559, '69c3c711e70da37c0bf6b2fed8ebd785')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082280 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:35', NULL, 969082280, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:00:35')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2334[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082280" for 127.0.0.1 at 2015-02-19 18:00:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082280"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082280 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082559 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082559)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082280[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082280[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082280 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082280[0m [["request_id", 969082280]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082559 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082559)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082280 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082280 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082559
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082280
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 71ms (Views: 18.4ms | ActiveRecord: 45.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '693db29d80bbd6e86ab410cb06060a98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:35', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'format', 'journal', 969082560, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:35', 'isbn', 1, '9789810743734', 969082560, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082560, '693db29d80bbd6e86ab410cb06060a98')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082281
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:35', NULL, 969082281, 'BorrowDirect', 'queued', '2015-02-19 23:00:35')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2335[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082560)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560)[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082281) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082281)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`id` = 2335 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082281, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:35', 'Choose your delivery location', 969082281, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2335
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082560 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082281 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082560
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082281
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 260ms (Views: 27.1ms | ActiveRecord: 118.0ms)
Started GET "/borrow_direct/BorrowDirect/969082281?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:00:35 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082281"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082281 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2335
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:35', 969082281, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082560 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082281&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 49ms (ActiveRecord: 39.5ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:00:35' WHERE `dispatched_services`.`id` = 2335[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013227
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082281&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:00:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082281", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:00:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082560 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082281
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082281 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 [["request_id", 969082281]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082560 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082560)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082281 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082281 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082560[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082281[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 82ms (Views: 22.6ms | ActiveRecord: 50.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:00:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '345f2f23c34ba244dcc72844aa47acb4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:36', '0109836413')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'format', 'journal', 969082561, 'journal')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'isbn', 1, '0109836413', 969082561, '0109836413')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:00:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082561, '345f2f23c34ba244dcc72844aa47acb4')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082282[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:36', NULL, 969082282, 'BorrowDirect', 'queued', '2015-02-19 23:00:36')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2336
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082282 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082561)[0m
[1m[35mReferentValue Load (1.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082561)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082282) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082282)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082282 AND `dispatched_services`.`id` = 2336 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082282, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:36', 'This item is not currently available from BorrowDirect', 969082282, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2336[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082282 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082561 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082561)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082282 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082282 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082561
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082282
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 19.9ms | ActiveRecord: 113.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8459a41a2651ae47f85b4905fb868c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:36', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'format', 'journal', 969082562, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'isbn', 1, '9789810743734', 969082562, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082562, 'a8459a41a2651ae47f85b4905fb868c0')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082283
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:36', NULL, 969082283, 'BorrowDirect', 'queued', '2015-02-19 23:00:36')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2337[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082562)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562)[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082283) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082283)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`id` = 2337 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082283, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:36', 'Choose your delivery location', 969082283, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2337
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082562 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082283 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082562
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082283
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 250ms (Views: 21.9ms | ActiveRecord: 115.4ms)
Started GET "/borrow_direct/BorrowDirect/969082283?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:00:36 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082283"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082283 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2337
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:36', 969082283, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082562 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082283&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 52ms (ActiveRecord: 38.5ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2337[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013232
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082283&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:00:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082283", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:00:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082562 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082283
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082283 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 [["request_id", 969082283]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082562 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082562)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082283 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082283 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082562[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082283[0m
[1m[35m (65.1ms)[0m COMMIT
Completed 200 OK in 124ms (Views: 19.7ms | ActiveRecord: 95.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c527d46ef953dcc4afb0a026f739d8cb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:36', '9789810743734')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'format', 'journal', 969082563, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:36', 'isbn', 1, '9789810743734', 969082563, '9789810743734')[0m
[1m[35m (41.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082563, 'c527d46ef953dcc4afb0a026f739d8cb')
[1m[36m (30.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (14.7ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082284[0m
[1m[35m (34.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:36', NULL, 969082284, 'BorrowDirect', 'queued', '2015-02-19 23:00:36')[0m
[1m[35m (27.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:36' WHERE `dispatched_services`.`id` = 2338
[1m[36m (29.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082284 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082563)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082563)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082284) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082284)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082284 AND `dispatched_services`.`id` = 2338 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082284, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:37', 'Choose your delivery location', 969082284, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2338[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082284 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082563 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082563)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082284 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082284 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082284 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082563[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082284[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 355ms (Views: 22.2ms | ActiveRecord: 220.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:00:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9ba529169e0ba7e44dbc32ec64fa445' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:00:37', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'journal', 969082564, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'isbn', 1, '9789810743734', 969082564, '9789810743734')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:00:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082564, 'c9ba529169e0ba7e44dbc32ec64fa445')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082285[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:37', NULL, 969082285, 'BorrowDirect', 'queued', '2015-02-19 23:00:37')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2339
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082564)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082285) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082285)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`id` = 2339 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082285, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:37', 'Choose your delivery location', 969082285, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2339[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082564 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082285 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082564[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082285[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 249ms (Views: 21.4ms | ActiveRecord: 114.9ms)
Started GET "/borrow_direct/BorrowDirect/969082285" for 127.0.0.1 at 2015-02-19 18:00:37 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082285"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082285 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:37', 969082285, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082564 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082285&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 25ms (ActiveRecord: 19.6ms)
Started GET "/resolve?umlaut.request_id=969082285&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A00%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:00:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082285", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:00:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082564 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082285
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 [["request_id", 969082285]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082564 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082564)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082285 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (47.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082285 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082285 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082564
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082285
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 121ms (Views: 66.3ms | ActiveRecord: 45.4ms)
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a055bb4aacb0a27c916c191eaa3b5c2a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:37', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'journal', 969082565, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'title', 1, 'title', 969082565, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'author', 1, 'au', 969082565, 'au')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:00:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082565, 'a055bb4aacb0a27c916c191eaa3b5c2a')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:00:37', 969082286, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082286, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082286 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:37', NULL, 969082286, 'test_bd', 'successful', '2015-02-19 23:00:37')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2340[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082286[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082286 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '91323dcab58374505ea3e45a25e94006' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:00:37', 'biological foundations of language', '1967')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'book', 969082566, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'auinit', 1, 'eh', 969082566, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'aulast', 1, 'lenneberg', 969082566, 'Lenneberg')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'title', 1, 'biological foundations of language', 969082566, 'Biological foundations of language')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'genre', 1, 'book', 969082566, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'date', 1, '1967', 969082566, '1967')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:00:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082566, 'info:sid/google', '91323dcab58374505ea3e45a25e94006')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082287 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082287, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082287 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:37', NULL, 969082287, 'test_bd', 'successful', '2015-02-19 23:00:37')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2341[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082287[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ccc79402fdb17c7ae8a1bfc1e835ebe2' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:00:37', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'journal', 969082567, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'auinit', 1, 'rd', 969082567, 'RD')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'aulast', 1, 'kaplan', 969082567, 'Kaplan')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'atitle', 1, 'the coming anarchy', 969082567, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'title', 1, 'the atlantic monthly', 969082567, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'volume', 1, '273', 969082567, '273')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'issue', 1, '2', 969082567, '2')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'date', 1, '1994', 969082567, '1994')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'spage', 1, '44', 969082567, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'issn', 1, '1072-7825', 969082567, '1072-7825')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:00:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082567, 'info:sid/google', 'ccc79402fdb17c7ae8a1bfc1e835ebe2')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082288 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:00:37', NULL, 969082288, 'test_bd', 'successful', '2015-02-19 23:00:37')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:00:37' WHERE `dispatched_services`.`id` = 2342
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082288
[1m[36mServiceResponse Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082288 LIMIT 1[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc9ea093022ab4f0a0ddef318b214349' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:00:37', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'format', 'journal', 969082568, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082568, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:00:37', 'aulast', 1, 'grimes', 969082568, 'Grimes')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:00:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082568, 'bc9ea093022ab4f0a0ddef318b214349')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:00:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082289, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082289 ORDER BY id ASC[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84f01f27c461c125fea9450074f4b880' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:28', '9789810743734')
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:28', 'format', 'journal', 969082569, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:28', 'isbn', 1, '9789810743734', 969082569, '9789810743734')
[1m[36m (21.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082569, '84f01f27c461c125fea9450074f4b880')[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082290
[1m[36m (13.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082290
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:28', NULL, 969082290, 'test_bd', 'queued', '2015-02-19 23:01:28')
[1m[36m (13.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:28' WHERE `dispatched_services`.`id` = 2343[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082290 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082569)
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082569)[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082290) ORDER BY id ASC
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082290)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082290 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082290 AND `dispatched_services`.`id` = 2343 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082290, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/available
Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 433ms
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:01:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd300fd5ab844e81cd4d1c35f5212b250' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:29', 'some book')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'format', 'book', 969082570, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'genre', 1, 'book', 969082570, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'author', 1, 'smith', 969082570, 'Smith')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'title', 1, 'some book', 969082570, 'Some Book')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082570, 'd300fd5ab844e81cd4d1c35f5212b250')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082291[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:29', NULL, 969082291, 'BorrowDirect', 'queued', '2015-02-19 23:01:29')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2344
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082291 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082570)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082570)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082291) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082291)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082291 AND `dispatched_services`.`id` = 2344 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082291, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2344
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082291 LIMIT 1
[1m[36mDispatchedService Load (4.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082570 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082570)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082291 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (35.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (39.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (40.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082291 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082570
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082291
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 369ms (Views: 136.6ms | ActiveRecord: 130.4ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:01:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a90681eca5f9f62550878126ffc1331' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:29', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'format', 'journal', 969082571, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'genre', 1, 'article', 969082571, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'title', 1, 'foo', 969082571, 'foo')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'author', 1, 'bar', 969082571, 'bar')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082571, '8a90681eca5f9f62550878126ffc1331')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082292
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:29', NULL, 969082292, 'BorrowDirect', 'queued', '2015-02-19 23:01:29')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2345[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082292 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082571)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082571)[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082292) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082292)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082292 AND `dispatched_services`.`id` = 2345 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2345
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082292 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082571 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082571)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082292 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082292 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082571[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082292[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 206ms (Views: 17.1ms | ActiveRecord: 117.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59aff87f53af0118aa077ed4b2878c3d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:29', 'foo')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'format', 'book', 969082572, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'genre', 1, 'book', 969082572, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'title', 1, 'foo', 969082572, 'foo')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:01:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082572, '59aff87f53af0118aa077ed4b2878c3d')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082293 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:29', NULL, 969082293, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:01:29')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2346
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082293" for 127.0.0.1 at 2015-02-19 18:01:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082293"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082293 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082572 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082572)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082293
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082293
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082293 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082293 [["request_id", 969082293]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082572 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082572)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082293 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082293 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082572[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082293[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 18.7ms | ActiveRecord: 46.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b8a81dc9294e374bd33701c540898b51' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:29', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'format', 'journal', 969082573, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:29', 'isbn', 1, '9789810743734', 969082573, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082573, 'b8a81dc9294e374bd33701c540898b51')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082294[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:29', NULL, 969082294, 'BorrowDirect', 'queued', '2015-02-19 23:01:29')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2347
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082573)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082294) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082294)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`id` = 2347 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082294, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:29', 'Choose your delivery location', 969082294, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:29' WHERE `dispatched_services`.`id` = 2347[0m
[1m[35m (22.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082573 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082294 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082573[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082294[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 265ms (Views: 24.7ms | ActiveRecord: 115.3ms)
Started GET "/borrow_direct/BorrowDirect/969082294?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:01:30 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082294"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082294 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2347[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:30', 969082294, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082573 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082294&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
Completed 303 See Other in 53ms (ActiveRecord: 38.5ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2347
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013246[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082294&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:01:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082294", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:01:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082573 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082294[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082294 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294[0m [["request_id", 969082294]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082573 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082573)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082294 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082294 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082573
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082294
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 76ms (Views: 21.7ms | ActiveRecord: 45.3ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:01:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '20d89874d881e20b2081b02c064cb5b9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:30', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:30', 'format', 'journal', 969082574, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:30', 'isbn', 1, '0109836413', 969082574, '0109836413')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:01:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082574, '20d89874d881e20b2081b02c064cb5b9')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082295
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:30', NULL, 969082295, 'BorrowDirect', 'queued', '2015-02-19 23:01:30')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2348[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082295 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082574)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082574)[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082295) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082295)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082295 AND `dispatched_services`.`id` = 2348 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082295, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:30', 'This item is not currently available from BorrowDirect', 969082295, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2348
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082295 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082574 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082574)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082295 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082295 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082574[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082295[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 246ms (Views: 19.1ms | ActiveRecord: 113.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c44cd23854467ed0e121eec7ad06e92b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:30', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:30', 'format', 'journal', 969082575, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:30', 'isbn', 1, '9789810743734', 969082575, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082575, 'c44cd23854467ed0e121eec7ad06e92b')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082296[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:30', NULL, 969082296, 'BorrowDirect', 'queued', '2015-02-19 23:01:30')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2349
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082575)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082296) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082296)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`id` = 2349 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082296, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:30', 'Choose your delivery location', 969082296, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2349[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082575 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082296 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082575[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082296[0m
[1m[35m (17.1ms)[0m COMMIT
Completed 200 OK in 295ms (Views: 22.3ms | ActiveRecord: 117.4ms)
Started GET "/borrow_direct/BorrowDirect/969082296?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:01:30 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082296"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082296 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2349[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:30', 969082296, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082575 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082296&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 38.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:30' WHERE `dispatched_services`.`id` = 2349
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013251[0m
[1m[35m (14.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082296&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:01:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082296", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:01:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082575 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082296[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082296 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296[0m [["request_id", 969082296]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082575 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082575)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082296 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082296 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082575
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082296
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 18.0ms | ActiveRecord: 45.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '307095735e110af57af82d8518ef0acf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:31', '9789810743734')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082576, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'isbn', 1, '9789810743734', 969082576, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082576, '307095735e110af57af82d8518ef0acf')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082297
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:31', NULL, 969082297, 'BorrowDirect', 'queued', '2015-02-19 23:01:31')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2350[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082297 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082576)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082576)[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082297) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082297)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082297 AND `dispatched_services`.`id` = 2350 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082297, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:31', 'Choose your delivery location', 969082297, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2350
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082297 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082576 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082576)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082297 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082297 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082297 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082576
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082297
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 251ms (Views: 21.7ms | ActiveRecord: 113.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:01:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab5fd65291fe24eb7d503fbe333e669b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:31', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082577, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'isbn', 1, '9789810743734', 969082577, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082577, 'ab5fd65291fe24eb7d503fbe333e669b')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082298
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:31', NULL, 969082298, 'BorrowDirect', 'queued', '2015-02-19 23:01:31')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2351[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082577)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577)[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082298) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082298)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`id` = 2351 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082298, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:31', 'Choose your delivery location', 969082298, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2351
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082577 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082298 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082577
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082298
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 290ms (Views: 21.8ms | ActiveRecord: 114.2ms)
Started GET "/borrow_direct/BorrowDirect/969082298" for 127.0.0.1 at 2015-02-19 18:01:31 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082298"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082298 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:31', 969082298, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082577 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082298&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.6ms)
Started GET "/resolve?umlaut.request_id=969082298&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:01:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082298", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:01:31-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082577 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082298[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298[0m [["request_id", 969082298]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082577 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082577)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082298 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082298 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082298 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082577[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082298[0m
[1m[35m (19.6ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 21.3ms | ActiveRecord: 49.2ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b128e3c32d8a89c38e9123c589c4756' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:31', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082578, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'title', 1, 'title', 969082578, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'author', 1, 'au', 969082578, 'au')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:01:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082578, '5b128e3c32d8a89c38e9123c589c4756')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:31', 969082299, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082299, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082299 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:31', NULL, 969082299, 'test_bd', 'successful', '2015-02-19 23:01:31')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2352
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082299
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082299 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'faacb7cea9b3f41b04a429b57b5c52b1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:31', '9789810743734')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082579, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'isbn', 1, '9789810743734', 969082579, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082579, 'faacb7cea9b3f41b04a429b57b5c52b1')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082300 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082300, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082300 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:31', NULL, 969082300, 'test_bd', 'successful', '2015-02-19 23:01:31')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:31' WHERE `dispatched_services`.`id` = 2353
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082300
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1709d099b5ad69d8e074424c1ef14a9d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (3.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:31', 'title')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'format', 'journal', 969082580, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:31', 'title', 1, 'title', 969082580, 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'author', 1, 'au', 969082580, 'au')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082580, '1709d099b5ad69d8e074424c1ef14a9d')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 969082301, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082301 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082301, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082301 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082301, 'test_bd', 'successful', '2015-02-19 23:01:32')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2354[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082301[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '57bc61ddf1d45141de4db4e547fef255' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:32', 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082581, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'title', 1, 'title', 969082581, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'author', 1, 'au', 969082581, 'au')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082581, '57bc61ddf1d45141de4db4e547fef255')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 969082302, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082302 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082302, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082302 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082302, 'test_bd', 'successful', '2015-02-19 23:01:32')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2355
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082302
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6097f8ee19ead44a4a1cf60d68ecf5db' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:32', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082582, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'title', 1, 'title', 969082582, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'author', 1, 'au', 969082582, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082582, '6097f8ee19ead44a4a1cf60d68ecf5db')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 969082303, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082303 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082303 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082303, 'test_bd', 'successful', '2015-02-19 23:01:32')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2356
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082303
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bedf73e604c8f4d4c19131a84f155462' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082583, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '9789810743734', 969082583, '9789810743734')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082583, 'bedf73e604c8f4d4c19131a84f155462')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082304 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082304, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082304 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082304, 'test_bd', 'failed_temporary', '2015-02-19 23:01:32')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2357[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082304[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed7832e419a7d69690db109267d4b063' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '9789810743734')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082584, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '9789810743734', 969082584, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082584, 'ed7832e419a7d69690db109267d4b063')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082305 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082305, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 'Choose your delivery location', 969082305, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082305 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082305, 'test_bd', 'successful', '2015-02-19 23:01:32')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2358[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082305[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '35dbe7eaa437c688e8294901598a29db' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082585, 'journal')[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '0109836413', 969082585, '0109836413')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082585, '35dbe7eaa437c688e8294901598a29db')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082306 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082306, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 'This item is not currently available from BorrowDirect', 969082306, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082306 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082306, 'test_bd', 'successful', '2015-02-19 23:01:32')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2359[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082306[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6dde25d9a8f71dc3c2309881bd1f1192' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '000000000')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082586, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '000000000', 969082586, '000000000')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082586, '6dde25d9a8f71dc3c2309881bd1f1192')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082307 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082307, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 'This item is not currently available from BorrowDirect', 969082307, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082307 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:32', NULL, 969082307, 'test_bd', 'successful', '2015-02-19 23:01:32')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:32' WHERE `dispatched_services`.`id` = 2360[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082307[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.3ms | ActiveRecord: 1.0ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8caf2553095212d203ee6797c68b7bc9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082587, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'isbn', 1, '121212', 969082587, '121212')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082587, '8caf2553095212d203ee6797c68b7bc9')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082308"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082308 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082308 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082308
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:32', 969082308, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082308\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082587 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082587)
Redirected to http://test.host/resolve?umlaut.request_id=969082308&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.5ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37a46bec75d3a17834c33932e1fad0b0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:32', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:32', 'format', 'journal', 969082588, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'isbn', 1, '121212', 969082588, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082588, '37a46bec75d3a17834c33932e1fad0b0')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082309, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082309"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082309 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082309 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013273
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082309, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013273\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082588 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082588)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082309&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 23.8ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8a6a5319e09905923945afb93488cec' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:33', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082589, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'isbn', 1, '121212', 969082589, '121212')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082589, 'd8a6a5319e09905923945afb93488cec')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082310, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082310"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082310 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082310 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082310 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:33', NULL, 969082310, 'BorrowDirect', 'in_progress', '2015-02-19 23:01:33')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2361[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082310, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082589 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082589)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082310&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 69ms (ActiveRecord: 58.6ms)
[1m[35mDispatchedService Load (2.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082310
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082310 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082310 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2361
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013276[0m
[1m[35m (14.5ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca26bca3018589a6cf61d70cd3642577' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:33', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082590, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'isbn', 1, '121212', 969082590, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082590, 'ca26bca3018589a6cf61d70cd3642577')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082311, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082311"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082311 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082311 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082311 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:33', NULL, 969082311, 'BorrowDirect', 'in_progress', '2015-02-19 23:01:33')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2362
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082311, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082590 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082590)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082311&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 67ms (ActiveRecord: 57.2ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ce3b3b08829c9b377be9e2b5a8a2925' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082311 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (2.8ms)[0m BEGIN
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:01:33', '121212')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082591, 'journal')
[1m[36mSQL (2.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2362[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'isbn', 1, '121212', 969082591, '121212')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013278[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082591, '9ce3b3b08829c9b377be9e2b5a8a2925')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082312"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082312 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082312 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:01:33', 969082312, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082591 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082591)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082312&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A01%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 23.0ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e05cf268953be272e2a88236b58ae20f' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:01:33', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082592, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082592, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'aulast', 1, 'grimes', 969082592, 'Grimes')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082592, 'e05cf268953be272e2a88236b58ae20f')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082313, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082313 ORDER BY id ASC[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e675b169b4aff6afcc3c48fa8692c56' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:01:33', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'journal', 969082593, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'auinit', 1, 'rd', 969082593, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'aulast', 1, 'kaplan', 969082593, 'Kaplan')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'atitle', 1, 'the coming anarchy', 969082593, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'title', 1, 'the atlantic monthly', 969082593, 'The Atlantic monthly')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'volume', 1, '273', 969082593, '273')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'issue', 1, '2', 969082593, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'date', 1, '1994', 969082593, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'spage', 1, '44', 969082593, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'issn', 1, '1072-7825', 969082593, '1072-7825')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082593, 'info:sid/google', '1e675b169b4aff6afcc3c48fa8692c56')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082314 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:33', NULL, 969082314, 'test_bd', 'successful', '2015-02-19 23:01:33')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2363
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082314
[1m[36mServiceResponse Exists (1.8ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082314 LIMIT 1[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08e413fa6bb865a95e61995839f40102' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:01:33', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'format', 'book', 969082594, 'book')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'auinit', 1, 'eh', 969082594, 'EH')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'aulast', 1, 'lenneberg', 969082594, 'Lenneberg')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'title', 1, 'biological foundations of language', 969082594, 'Biological foundations of language')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'genre', 1, 'book', 969082594, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:01:33', 'date', 1, '1967', 969082594, '1967')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:01:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082594, 'info:sid/google', '08e413fa6bb865a95e61995839f40102')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082315 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:01:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082315, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082315 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:01:33', NULL, 969082315, 'test_bd', 'successful', '2015-02-19 23:01:33')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:01:33' WHERE `dispatched_services`.`id` = 2364
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082315
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 49ms (Views: 10.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 66ms (Views: 0.4ms | ActiveRecord: 6.6ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7df6949434c7752d6108fa09e437c1f0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:08', '121212')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:08', 'format', 'journal', 969082595, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:08', 'isbn', 1, '121212', 969082595, '121212')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082595, '7df6949434c7752d6108fa09e437c1f0')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082316"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082316 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082316 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082316
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082316, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082316\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082595 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082595)
Redirected to http://test.host/resolve?umlaut.request_id=969082316&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 56ms (ActiveRecord: 30.6ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd70c4311e88d283dcc59e746162278e1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:09', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:09', 'format', 'journal', 969082596, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:09', 'isbn', 1, '121212', 969082596, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082596, 'd70c4311e88d283dcc59e746162278e1')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082317, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082317"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082317 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082317 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013283
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082317, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013283\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082596 LIMIT 1
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082596)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082317&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.0ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '164b53b3057c73495c034ae2e5b6f229' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:09', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:09', 'format', 'journal', 969082597, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:09', 'isbn', 1, '121212', 969082597, '121212')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082597, '164b53b3057c73495c034ae2e5b6f229')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082318, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082318"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082318 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082318 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082318 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:09', NULL, 969082318, 'BorrowDirect', 'in_progress', '2015-02-19 23:02:09')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:09' WHERE `dispatched_services`.`id` = 2365[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:09', 969082318, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082597 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082597)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082318&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 115ms (ActiveRecord: 62.9ms)
[1m[35mDispatchedService Load (4.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082318
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082318 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082318 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:02:09' WHERE `dispatched_services`.`id` = 2365
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013286[0m
[1m[35m (14.1ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72130c122a30b1907ea018069bf8c4c1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:40', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:40', 'format', 'journal', 969082598, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:40', 'isbn', 1, '121212', 969082598, '121212')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082598, '72130c122a30b1907ea018069bf8c4c1')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:40', 969082319, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082319"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082319 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082319 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082319 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:40', NULL, 969082319, 'BorrowDirect', 'in_progress', '2015-02-19 23:02:40')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:40' WHERE `dispatched_services`.`id` = 2366
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:40', 969082319, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082598 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082598)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082319&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 84ms (ActiveRecord: 62.5ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[36mRequest Load (2.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a53708f22996542abe136b0038a2d34c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082319 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35m (4.8ms)[0m BEGIN
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:40', '121212')[0m
[1m[35mSQL (2.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2366
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082599, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'isbn', 1, '121212', 969082599, '121212')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mSQL (2.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013288
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082599, 'a53708f22996542abe136b0038a2d34c')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (15.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082320"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082320 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082320 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:41', 969082320, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082599 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082599)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082320&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 23.8ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca20e0f10802a636843d54ec70e83cf0' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:41', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082600, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082600, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'aulast', 1, 'grimes', 969082600, 'Grimes')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082600, 'ca20e0f10802a636843d54ec70e83cf0')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082321, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082321 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f51ada0ed4e66996a01459f687755fa7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:02:41', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082601, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'auinit', 1, 'rd', 969082601, 'RD')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'aulast', 1, 'kaplan', 969082601, 'Kaplan')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'atitle', 1, 'the coming anarchy', 969082601, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'title', 1, 'the atlantic monthly', 969082601, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'volume', 1, '273', 969082601, '273')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'issue', 1, '2', 969082601, '2')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'date', 1, '1994', 969082601, '1994')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'spage', 1, '44', 969082601, '44')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'issn', 1, '1072-7825', 969082601, '1072-7825')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082601, 'info:sid/google', 'f51ada0ed4e66996a01459f687755fa7')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082322 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082322, 'test_bd', 'successful', '2015-02-19 23:02:41')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2367
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082322
[1m[36mServiceResponse Exists (1.9ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082322 LIMIT 1[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7c8064e630a87b50f74d64122cee8aa' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:02:41', 'biological foundations of language', '1967')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'book', 969082602, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'auinit', 1, 'eh', 969082602, 'EH')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'aulast', 1, 'lenneberg', 969082602, 'Lenneberg')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'title', 1, 'biological foundations of language', 969082602, 'Biological foundations of language')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'genre', 1, 'book', 969082602, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'date', 1, '1967', 969082602, '1967')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082602, 'info:sid/google', 'f7c8064e630a87b50f74d64122cee8aa')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082323 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082323, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082323 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082323, 'test_bd', 'successful', '2015-02-19 23:02:41')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2368
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082323
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e692a2307475850c819c8152ecc845c2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:41', 'title')[0m
[1m[35mSQL (6.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082603, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'title', 1, 'title', 969082603, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'author', 1, 'au', 969082603, 'au')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082603, 'e692a2307475850c819c8152ecc845c2')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:41', 969082324, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082324, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082324 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082324, 'test_bd', 'successful', '2015-02-19 23:02:41')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2369
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082324
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082324 ORDER BY id ASC[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37e4d4c0d721f8562c952f541f404222' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:41', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082604, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'isbn', 1, '9789810743734', 969082604, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082604, '37e4d4c0d721f8562c952f541f404222')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082325 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082325, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082325 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082325, 'test_bd', 'successful', '2015-02-19 23:02:41')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2370
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082325
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:41 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d1992ea02521e4a3bfbcbffacea2314' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:41', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'format', 'journal', 969082605, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:41', 'isbn', 1, '9789810743734', 969082605, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082605, '4d1992ea02521e4a3bfbcbffacea2314')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082326[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082326[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:41', NULL, 969082326, 'test_bd', 'queued', '2015-02-19 23:02:41')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:41' WHERE `dispatched_services`.`id` = 2371
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082326 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082605)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082605)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082326) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082326)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082326 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082326 AND `dispatched_services`.`id` = 2371 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082326, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/available
Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 262ms
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:02:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cfaea2bc9965530d81f389c277129c48' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:42', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'format', 'book', 969082606, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'genre', 1, 'book', 969082606, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'author', 1, 'smith', 969082606, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'title', 1, 'some book', 969082606, 'Some Book')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:02:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082606, 'cfaea2bc9965530d81f389c277129c48')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082327
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:42', NULL, 969082327, 'BorrowDirect', 'queued', '2015-02-19 23:02:42')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2372[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082327 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082606)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082606)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082327) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082327)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082327 AND `dispatched_services`.`id` = 2372 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082327, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2372[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082327 LIMIT 1[0m
[1m[35mDispatchedService Load (8.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082606 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082606)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (3.2ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082327 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (4.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (13.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (41.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082327 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (1.0ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082606[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (13.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.2ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082327[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 441ms (Views: 191.9ms | ActiveRecord: 121.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:02:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9e439b3fe41ea72b78abb9d21b8297c' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:42', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'format', 'journal', 969082607, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'genre', 1, 'article', 969082607, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'title', 1, 'foo', 969082607, 'foo')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'author', 1, 'bar', 969082607, 'bar')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:02:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082607, 'd9e439b3fe41ea72b78abb9d21b8297c')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082328[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:42', NULL, 969082328, 'BorrowDirect', 'queued', '2015-02-19 23:02:42')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2373
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082328 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082607)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082607)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082328) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082328)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082328 AND `dispatched_services`.`id` = 2373 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2373[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082328 LIMIT 1[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082607 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082607)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.5ms)
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082328 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082328 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082607
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082328
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 267ms (Views: 41.2ms | ActiveRecord: 122.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '258918724b46e179a8c88e497f5e46e1' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:42', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'format', 'book', 969082608, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'genre', 1, 'book', 969082608, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:42', 'title', 1, 'foo', 969082608, 'foo')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:02:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082608, '258918724b46e179a8c88e497f5e46e1')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082329 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:42', NULL, 969082329, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:02:42')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:42' WHERE `dispatched_services`.`id` = 2374[0m
[1m[35m (14.4ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082329" for 127.0.0.1 at 2015-02-19 18:02:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082329"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082329 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082608 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082608)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082329[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082329[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082329 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082329[0m [["request_id", 969082329]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082608 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082608)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.5ms)
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082329 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082329 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.4ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082608
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082329
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 107ms (Views: 43.7ms | ActiveRecord: 48.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7176f939defc743334652559b472fd17' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:43', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:43', 'format', 'journal', 969082609, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:43', 'isbn', 1, '9789810743734', 969082609, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082609, '7176f939defc743334652559b472fd17')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082330
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:43', NULL, 969082330, 'BorrowDirect', 'queued', '2015-02-19 23:02:43')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2375[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082609)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609)[0m
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082330) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082330)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`id` = 2375 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082330, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:43', 'Choose your delivery location', 969082330, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2375
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082609 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (4.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082330 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (14.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (16.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082609
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082330
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 375ms (Views: 56.1ms | ActiveRecord: 116.5ms)
Started GET "/borrow_direct/BorrowDirect/969082330?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:02:43 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082330"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082330 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2375
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:43', 969082330, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082609 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082330&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 58ms (ActiveRecord: 39.0ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2375[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013299
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082330&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:02:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082330", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:02:43-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082609 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082330
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082330 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 [["request_id", 969082330]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082609 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082609)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082330 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082330 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082609[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082330[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 115ms (Views: 49.6ms | ActiveRecord: 48.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:02:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5280ed810b2fea70011e4a5ea7637ca7' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:43', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:43', 'format', 'journal', 969082610, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:43', 'isbn', 1, '0109836413', 969082610, '0109836413')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:02:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082610, '5280ed810b2fea70011e4a5ea7637ca7')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082331[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:43', NULL, 969082331, 'BorrowDirect', 'queued', '2015-02-19 23:02:43')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:43' WHERE `dispatched_services`.`id` = 2376
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082331 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082610)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082610)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082331) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082331)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082331 AND `dispatched_services`.`id` = 2376 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082331, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:44', 'This item is not currently available from BorrowDirect', 969082331, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2376[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082331 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[36mDispatchedService Load (2.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082610 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082610)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082331 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082331 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082610
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082331
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 358ms (Views: 46.4ms | ActiveRecord: 115.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '620d26e2899d542a290f6273754faac5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:44', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:44', 'format', 'journal', 969082611, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:44', 'isbn', 1, '9789810743734', 969082611, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082611, '620d26e2899d542a290f6273754faac5')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082332
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:44', NULL, 969082332, 'BorrowDirect', 'queued', '2015-02-19 23:02:44')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2377[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082611)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082332) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082332)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`id` = 2377 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082332, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:44', 'Choose your delivery location', 969082332, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2377
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.6ms)
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082611 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082332 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082611
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082332
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 323ms (Views: 50.2ms | ActiveRecord: 116.4ms)
Started GET "/borrow_direct/BorrowDirect/969082332?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:02:44 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082332"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082332 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2377
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:44', 969082332, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082611 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082332&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 70ms (ActiveRecord: 38.3ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2377[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013304
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082332&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:02:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082332", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:02:44-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082611 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082332
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082332 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 [["request_id", 969082332]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082611 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082611)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082332 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082332 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082611[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082332[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 108ms (Views: 43.0ms | ActiveRecord: 46.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '537b6ea0abf90aebf5ad160887aa52d9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:44', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:44', 'format', 'journal', 969082612, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:44', 'isbn', 1, '9789810743734', 969082612, '9789810743734')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082612, '537b6ea0abf90aebf5ad160887aa52d9')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082333[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:44', NULL, 969082333, 'BorrowDirect', 'queued', '2015-02-19 23:02:44')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:44' WHERE `dispatched_services`.`id` = 2378
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082333 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082612)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082612)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082333) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082333)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082333 AND `dispatched_services`.`id` = 2378 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082333, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:44', 'Choose your delivery location', 969082333, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:45' WHERE `dispatched_services`.`id` = 2378[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082333 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.6ms)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082612 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082612)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082333 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.4ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082333 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082333 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082612[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082333[0m
[1m[35m (15.2ms)[0m COMMIT
Completed 200 OK in 323ms (Views: 50.5ms | ActiveRecord: 121.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:02:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9dedf86ba18e4595cce507d50907c8aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:45', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'format', 'journal', 969082613, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'isbn', 1, '9789810743734', 969082613, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082613, '9dedf86ba18e4595cce507d50907c8aa')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082334[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:45', NULL, 969082334, 'BorrowDirect', 'queued', '2015-02-19 23:02:45')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:45' WHERE `dispatched_services`.`id` = 2379
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082613)[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082334) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082334)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`id` = 2379 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082334, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:45', 'Choose your delivery location', 969082334, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:02:45' WHERE `dispatched_services`.`id` = 2379[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082613 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms)
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082334 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082613[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082334[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 320ms (Views: 50.7ms | ActiveRecord: 116.7ms)
Started GET "/borrow_direct/BorrowDirect/969082334" for 127.0.0.1 at 2015-02-19 18:02:45 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082334"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082334 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:45', 969082334, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082613 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082334&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 20.5ms)
Started GET "/resolve?umlaut.request_id=969082334&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A02%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:02:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082334", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:02:45-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082613 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082334
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 [["request_id", 969082334]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082613 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082613)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082334 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082334 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (12.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082334 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082613
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082334
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 115ms (Views: 51.1ms | ActiveRecord: 46.1ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e1eff4b976f225016908900228670ce' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:45', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'format', 'journal', 969082614, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'isbn', 1, '9789810743734', 969082614, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082614, '6e1eff4b976f225016908900228670ce')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082335 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082335, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:45', 'Choose your delivery location', 969082335, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082335 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:45', NULL, 969082335, 'test_bd', 'successful', '2015-02-19 23:02:45')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:45' WHERE `dispatched_services`.`id` = 2380[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082335[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8dd51246c14a5865f3d73c2e9760378' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:45', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'format', 'journal', 969082615, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:45', 'isbn', 1, '9789810743734', 969082615, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:02:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082615, 'a8dd51246c14a5865f3d73c2e9760378')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082336 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082336, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082336 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082336, 'test_bd', 'failed_temporary', '2015-02-19 23:02:46')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2381
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082336
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea11ff9f56d6b1de4269ea7b31292774' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:46', '000000000')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082616, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'isbn', 1, '000000000', 969082616, '000000000')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082616, 'ea11ff9f56d6b1de4269ea7b31292774')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082337 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082337, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 'This item is not currently available from BorrowDirect', 969082337, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082337 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082337, 'test_bd', 'successful', '2015-02-19 23:02:46')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2382
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082337
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '726459631af6de3c8a9aa99ff3a91c21' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:02:46', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082617, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'isbn', 1, '0109836413', 969082617, '0109836413')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082617, '726459631af6de3c8a9aa99ff3a91c21')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082338 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082338, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 'This item is not currently available from BorrowDirect', 969082338, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082338 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082338, 'test_bd', 'successful', '2015-02-19 23:02:46')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2383
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082338
[1m[36m (1.1ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (1.0ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '866b6564053e5214338febf975a63d6e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:46', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082618, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'title', 1, 'title', 969082618, 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'author', 1, 'au', 969082618, 'au')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082618, '866b6564053e5214338febf975a63d6e')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 969082339, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082339 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082339, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082339 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082339, 'test_bd', 'successful', '2015-02-19 23:02:46')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2384[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082339[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3d545272240d85a431ab84f4bd8188fb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:46', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082619, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'title', 1, 'title', 969082619, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'author', 1, 'au', 969082619, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082619, '3d545272240d85a431ab84f4bd8188fb')
[1m[36m (24.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 969082340, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082340 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:02:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082340, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082340 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082340, 'test_bd', 'successful', '2015-02-19 23:02:46')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2385
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082340
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a82fb33cc5d1f8fa962f2628f2fd024' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:02:46', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'format', 'journal', 969082620, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'title', 1, 'title', 969082620, 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:02:46', 'author', 1, 'au', 969082620, 'au')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:02:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082620, '8a82fb33cc5d1f8fa962f2628f2fd024')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:02:46', 969082341, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082341 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082341 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:02:46', NULL, 969082341, 'test_bd', 'successful', '2015-02-19 23:02:46')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:02:46' WHERE `dispatched_services`.`id` = 2386
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082341
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '468f243b1300b05446a3286ebc02ee85' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:45', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'format', 'journal', 969082621, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'isbn', 1, '000000000', 969082621, '000000000')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:03:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082621, '468f243b1300b05446a3286ebc02ee85')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082342 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082342, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:45', 'This item is not currently available from BorrowDirect', 969082342, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082342 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:45', NULL, 969082342, 'test_bd', 'successful', '2015-02-19 23:03:45')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:45' WHERE `dispatched_services`.`id` = 2387[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082342[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34dffbf9e5e882291076d41971d77f4b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:45', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'format', 'journal', 969082622, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'isbn', 1, '9789810743734', 969082622, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082622, '34dffbf9e5e882291076d41971d77f4b')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082343 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082343, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:45', 'Choose your delivery location', 969082343, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082343 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:45', NULL, 969082343, 'test_bd', 'successful', '2015-02-19 23:03:45')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:45' WHERE `dispatched_services`.`id` = 2388[0m
[1m[35m (33.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082343[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a1c1a8d0cb19e2adcb8d89804210ee6d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:45', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'format', 'journal', 969082623, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:45', 'isbn', 1, '0109836413', 969082623, '0109836413')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:03:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082623, 'a1c1a8d0cb19e2adcb8d89804210ee6d')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082344 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082344, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 'This item is not currently available from BorrowDirect', 969082344, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082344 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082344, 'test_bd', 'successful', '2015-02-19 23:03:46')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2389[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082344[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b1120deeef69bd0841f169351c3ba560' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:46', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082624, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'isbn', 1, '9789810743734', 969082624, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082624, 'b1120deeef69bd0841f169351c3ba560')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082345 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082345, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.7ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082345 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082345, 'test_bd', 'failed_temporary', '2015-02-19 23:03:46')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2390
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082345
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '560f64a1f1ff4ef68338560a3c73b15a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:46', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082625, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'isbn', 1, '9789810743734', 969082625, '9789810743734')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082625, '560f64a1f1ff4ef68338560a3c73b15a')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082346 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082346, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082346 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082346, 'test_bd', 'successful', '2015-02-19 23:03:46')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2391[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082346[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0c423c8b4200ed60d7b85ae4c11809b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:46', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082626, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'title', 1, 'title', 969082626, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'author', 1, 'au', 969082626, 'au')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082626, 'e0c423c8b4200ed60d7b85ae4c11809b')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 969082347, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082347, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082347 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082347, 'test_bd', 'successful', '2015-02-19 23:03:46')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2392[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082347[0m
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082347 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5fec15fd6747ad0daabf7beb0cc1f5d5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:46', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082627, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'title', 1, 'title', 969082627, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'author', 1, 'au', 969082627, 'au')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082627, '5fec15fd6747ad0daabf7beb0cc1f5d5')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 969082348, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082348 ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082348 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082348, 'test_bd', 'successful', '2015-02-19 23:03:46')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2393
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082348
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '03b28a7ca4ff3794d4434cb66723e2ab' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:46', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082628, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'title', 1, 'title', 969082628, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'author', 1, 'au', 969082628, 'au')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082628, '03b28a7ca4ff3794d4434cb66723e2ab')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 969082349, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082349 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082349, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082349 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082349, 'test_bd', 'successful', '2015-02-19 23:03:46')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2394[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082349[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9678ff919ade256988baf64b05b580d0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:46', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082629, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'title', 1, 'title', 969082629, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'author', 1, 'au', 969082629, 'au')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:03:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082629, '9678ff919ade256988baf64b05b580d0')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:46', 969082350, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082350 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082350, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082350 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082350, 'test_bd', 'successful', '2015-02-19 23:03:46')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2395
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082350
[1m[36m (0.8ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63bccde33db1b636edbdea92886dea30' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:46', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'format', 'journal', 969082630, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:46', 'isbn', 1, '9789810743734', 969082630, '9789810743734')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082630, '63bccde33db1b636edbdea92886dea30')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082351[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082351[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:46', NULL, 969082351, 'test_bd', 'queued', '2015-02-19 23:03:46')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:46' WHERE `dispatched_services`.`id` = 2396
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082351 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082630)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082630)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082351) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082351)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082351 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082351 AND `dispatched_services`.`id` = 2396 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082351, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/available
Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 253ms
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:03:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de4cea6f291907d1d202bc69eb88d80e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:47', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'format', 'book', 969082631, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'genre', 1, 'book', 969082631, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'author', 1, 'smith', 969082631, 'Smith')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'title', 1, 'some book', 969082631, 'Some Book')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:03:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082631, 'de4cea6f291907d1d202bc69eb88d80e')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082352
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:47', NULL, 969082352, 'BorrowDirect', 'queued', '2015-02-19 23:03:47')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2397[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082352 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082631)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082631)[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082352) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082352)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082352 AND `dispatched_services`.`id` = 2397 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082352, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2397[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082352 LIMIT 1[0m
[1m[35mDispatchedService Load (7.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082631 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082631)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.6ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082352 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082352 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082631
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082352
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 395ms (Views: 169.2ms | ActiveRecord: 129.9ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:03:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '395069468a92412fd9aa728eb3ebef51' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:47', 'foo')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'format', 'journal', 969082632, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'genre', 1, 'article', 969082632, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'title', 1, 'foo', 969082632, 'foo')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'author', 1, 'bar', 969082632, 'bar')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:03:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082632, '395069468a92412fd9aa728eb3ebef51')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082353
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:47', NULL, 969082353, 'BorrowDirect', 'queued', '2015-02-19 23:03:47')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2398[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082353 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082632)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082632)[0m
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082353) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082353)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082353 AND `dispatched_services`.`id` = 2398 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2398
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082353 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082632 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082632)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082353 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082353 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082632[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082353[0m
[1m[35m (15.6ms)[0m COMMIT
Completed 200 OK in 243ms (Views: 16.5ms | ActiveRecord: 121.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71764899c7771b9111dd0987946a6d04' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:47', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'format', 'book', 969082633, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'genre', 1, 'book', 969082633, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'title', 1, 'foo', 969082633, 'foo')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:03:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082633, '71764899c7771b9111dd0987946a6d04')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082354 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:47', NULL, 969082354, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:03:47')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:47' WHERE `dispatched_services`.`id` = 2399
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082354" for 127.0.0.1 at 2015-02-19 18:03:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082354"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082354 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082633 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082633)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082354
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082354
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082354 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082354 [["request_id", 969082354]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082633 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082633)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082354 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082354 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082633[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082354[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 18.1ms | ActiveRecord: 47.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17a4d78cad3a46712c9cfee06ca9ea0e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:47', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'format', 'journal', 969082634, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:47', 'isbn', 1, '9789810743734', 969082634, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082634, '17a4d78cad3a46712c9cfee06ca9ea0e')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082355[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:48', NULL, 969082355, 'BorrowDirect', 'queued', '2015-02-19 23:03:48')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2400
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082634)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082355) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082355)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`id` = 2400 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082355, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:48', 'Choose your delivery location', 969082355, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2400[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082634 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082355 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082634[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082355[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 257ms (Views: 25.0ms | ActiveRecord: 117.4ms)
Started GET "/borrow_direct/BorrowDirect/969082355?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:03:48 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082355"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082355 ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2400[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:48', 969082355, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082634 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082355&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 37.1ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2400
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013341[0m
[1m[35m (14.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082355&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:03:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082355", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:03:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082634 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082355[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082355 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355[0m [["request_id", 969082355]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082634 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082634)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082355 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082355 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (44.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (45.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082634
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082355
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 118ms (Views: 62.5ms | ActiveRecord: 46.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:03:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15570f70eb73a061f17d678276bb0ecb' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:48', '0109836413')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:48', 'format', 'journal', 969082635, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:48', 'isbn', 1, '0109836413', 969082635, '0109836413')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:03:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082635, '15570f70eb73a061f17d678276bb0ecb')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082356
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:48', NULL, 969082356, 'BorrowDirect', 'queued', '2015-02-19 23:03:48')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2401[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082356 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082635)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082635)[0m
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082356) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082356)[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082356 AND `dispatched_services`.`id` = 2401 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082356, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:48', 'This item is not currently available from BorrowDirect', 969082356, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2401
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082356 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082635 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082635)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082356 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082356 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082635[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082356[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 251ms (Views: 19.7ms | ActiveRecord: 115.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4e23a018df2161622e5f3f52ba4d55c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:48', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:48', 'format', 'journal', 969082636, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:48', 'isbn', 1, '9789810743734', 969082636, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082636, 'd4e23a018df2161622e5f3f52ba4d55c')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082357[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:48', NULL, 969082357, 'BorrowDirect', 'queued', '2015-02-19 23:03:48')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2402
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082636)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082357) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082357)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`id` = 2402 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082357, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:48', 'Choose your delivery location', 969082357, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2402[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082636 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082357 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082636[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082357[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 251ms (Views: 21.7ms | ActiveRecord: 114.2ms)
Started GET "/borrow_direct/BorrowDirect/969082357?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:03:48 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082357"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082357 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:03:48' WHERE `dispatched_services`.`id` = 2402[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:49', 969082357, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082636 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082357&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 54ms (ActiveRecord: 38.7ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2402
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013346[0m
[1m[35m (14.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082357&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:03:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082357", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:03:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082636 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082357[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082357 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357[0m [["request_id", 969082357]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082636 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082636)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.1ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082357 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082357 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082636
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082357
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 115ms (Views: 61.1ms | ActiveRecord: 45.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d565639e4bdf1fc26003a1249330b9c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:49', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:49', 'format', 'journal', 969082637, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:49', 'isbn', 1, '9789810743734', 969082637, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082637, '2d565639e4bdf1fc26003a1249330b9c')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082358
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:49', NULL, 969082358, 'BorrowDirect', 'queued', '2015-02-19 23:03:49')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2403[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082358 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082637)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082637)[0m
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082358) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082358)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082358 AND `dispatched_services`.`id` = 2403 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082358, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:49', 'Choose your delivery location', 969082358, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2403
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082358 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082637 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082637)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082358 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082358 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082358 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082637
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082358
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 252ms (Views: 22.1ms | ActiveRecord: 114.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:03:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '415d15959832a442ef54e23f3f6f56c6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:49', '9789810743734')
[1m[36mSQL (6.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:49', 'format', 'journal', 969082638, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:49', 'isbn', 1, '9789810743734', 969082638, '9789810743734')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:03:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082638, '415d15959832a442ef54e23f3f6f56c6')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082359
[1m[36m (62.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:49', NULL, 969082359, 'BorrowDirect', 'queued', '2015-02-19 23:03:49')
[1m[36m (59.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2404[0m
[1m[35m (28.1ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082638)
[1m[36mReferentValue Load (1.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638)[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082359) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082359)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (31.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`id` = 2404 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082359, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:49', 'Choose your delivery location', 969082359, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:03:49' WHERE `dispatched_services`.`id` = 2404
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082638 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082359 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082638
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082359
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 384ms (Views: 21.4ms | ActiveRecord: 229.7ms)
Started GET "/borrow_direct/BorrowDirect/969082359" for 127.0.0.1 at 2015-02-19 18:03:49 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082359"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082359 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:49', 969082359, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082638 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082359&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.7ms)
Started GET "/resolve?umlaut.request_id=969082359&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:03:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082359", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:03:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082638 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082359[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359[0m [["request_id", 969082359]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082638 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082638)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082359 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082359 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082359 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082638[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082359[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 118ms (Views: 21.9ms | ActiveRecord: 45.1ms)
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '13fed1afb40c3962599999e3c8b90134' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:03:50', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'book', 969082639, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'auinit', 1, 'eh', 969082639, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'aulast', 1, 'lenneberg', 969082639, 'Lenneberg')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'title', 1, 'biological foundations of language', 969082639, 'Biological foundations of language')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'genre', 1, 'book', 969082639, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'date', 1, '1967', 969082639, '1967')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082639, 'info:sid/google', '13fed1afb40c3962599999e3c8b90134')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082360 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082360, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082360 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:50', NULL, 969082360, 'test_bd', 'successful', '2015-02-19 23:03:50')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:50' WHERE `dispatched_services`.`id` = 2405[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082360[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed4427d861d7f48340f96acaef63f183' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:03:50', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082640, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'auinit', 1, 'rd', 969082640, 'RD')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'aulast', 1, 'kaplan', 969082640, 'Kaplan')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'atitle', 1, 'the coming anarchy', 969082640, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'title', 1, 'the atlantic monthly', 969082640, 'The Atlantic monthly')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'volume', 1, '273', 969082640, '273')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'issue', 1, '2', 969082640, '2')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'date', 1, '1994', 969082640, '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'spage', 1, '44', 969082640, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'issn', 1, '1072-7825', 969082640, '1072-7825')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082640, 'info:sid/google', 'ed4427d861d7f48340f96acaef63f183')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082361 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:50', NULL, 969082361, 'test_bd', 'successful', '2015-02-19 23:03:50')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:50' WHERE `dispatched_services`.`id` = 2406
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082361
[1m[36mServiceResponse Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082361 LIMIT 1[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49361ef64d0ef9805a4a0ee1377f7cba' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:03:50', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082641, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082641, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'aulast', 1, 'grimes', 969082641, 'Grimes')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082641, '49361ef64d0ef9805a4a0ee1377f7cba')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:03:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082362, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082362 ORDER BY id ASC[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b280596db5a99edf77cae5aba553840' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:50', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082642, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'isbn', 1, '121212', 969082642, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082642, '3b280596db5a99edf77cae5aba553840')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082363"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082363 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082363 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082363
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082363, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082363\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082642 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082642)
Redirected to http://test.host/resolve?umlaut.request_id=969082363&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.0ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8dd39acc995c515cf5f962319c1448c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:50', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082643, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'isbn', 1, '121212', 969082643, '121212')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082643, 'e8dd39acc995c515cf5f962319c1448c')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082364, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082364"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082364 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082364 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013355
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082364, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013355\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082643 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082643)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082364&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.9ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72380c632fdb3d1cedb392b9a8f6e079' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:50', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'format', 'journal', 969082644, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:50', 'isbn', 1, '121212', 969082644, '121212')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082644, '72380c632fdb3d1cedb392b9a8f6e079')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082365, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082365"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082365 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082365 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082365 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:50', NULL, 969082365, 'BorrowDirect', 'in_progress', '2015-02-19 23:03:50')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:50' WHERE `dispatched_services`.`id` = 2407[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:50', 969082365, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082644 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082644)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082365&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 68ms (ActiveRecord: 57.9ms)
[1m[35mDispatchedService Load (3.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082365
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082365 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082365 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:03:50' WHERE `dispatched_services`.`id` = 2407
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013358[0m
[1m[35m (14.0ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aac7c70d50aa80a454c831d057b0233a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:52', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:52', 'format', 'journal', 969082645, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:52', 'isbn', 1, '121212', 969082645, '121212')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082645, 'aac7c70d50aa80a454c831d057b0233a')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:52', 969082366, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082366"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082366 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082366 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082366 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:03:52', NULL, 969082366, 'BorrowDirect', 'in_progress', '2015-02-19 23:03:52')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:03:52' WHERE `dispatched_services`.`id` = 2408
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:52', 969082366, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082645 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082645)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082366&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 132ms (ActiveRecord: 65.0ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c2e0838c7a44ceb1e2696349a09a9947' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:03:52', '121212')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:52', 'format', 'journal', 969082646, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:03:52', 'isbn', 1, '121212', 969082646, '121212')[0m
[1m[35m (24.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:03:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082646, 'c2e0838c7a44ceb1e2696349a09a9947')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082367"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082367 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082367 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:03:52', 969082367, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082646 LIMIT 1[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082646)
Redirected to http://test.host/resolve?umlaut.request_id=969082367&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A03%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 39ms (ActiveRecord: 24.9ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '35fccd1cf53ba5008105cf44b3805b41' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:04:24', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'format', 'journal', 969082647, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'auinit', 1, 'rd', 969082647, 'RD')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'aulast', 1, 'kaplan', 969082647, 'Kaplan')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'atitle', 1, 'the coming anarchy', 969082647, 'The coming anarchy')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'title', 1, 'the atlantic monthly', 969082647, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'volume', 1, '273', 969082647, '273')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'issue', 1, '2', 969082647, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'date', 1, '1994', 969082647, '1994')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'spage', 1, '44', 969082647, '44')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'issn', 1, '1072-7825', 969082647, '1072-7825')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:04:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082647, 'info:sid/google', '35fccd1cf53ba5008105cf44b3805b41')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082368 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:24', NULL, 969082368, 'test_bd', 'successful', '2015-02-19 23:04:24')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:24' WHERE `dispatched_services`.`id` = 2409
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082368
[1m[36mServiceResponse Exists (2.0ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082368 LIMIT 1[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34140126a3b5ada044363e1dd4b69b83' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:24', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'format', 'journal', 969082648, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082648, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'aulast', 1, 'grimes', 969082648, 'Grimes')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:04:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082648, '34140126a3b5ada044363e1dd4b69b83')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082369, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082369 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9bcaa729f42632623a257fb642aece7' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:04:24', 'biological foundations of language', '1967')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'format', 'book', 969082649, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'auinit', 1, 'eh', 969082649, 'EH')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'aulast', 1, 'lenneberg', 969082649, 'Lenneberg')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'title', 1, 'biological foundations of language', 969082649, 'Biological foundations of language')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'genre', 1, 'book', 969082649, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:24', 'date', 1, '1967', 969082649, '1967')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:04:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082649, 'info:sid/google', 'd9bcaa729f42632623a257fb642aece7')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082370 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082370, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082370 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:24', NULL, 969082370, 'test_bd', 'successful', '2015-02-19 23:04:24')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2410
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082370
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8e7d62ce526e7cc002bd66b24261cc1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:25', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'format', 'journal', 969082650, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'isbn', 1, '9789810743734', 969082650, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082650, 'd8e7d62ce526e7cc002bd66b24261cc1')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082371[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:25', NULL, 969082371, 'test_bd', 'queued', '2015-02-19 23:04:25')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2411
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082371 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082650)[0m
[1m[35mReferentValue Load (1.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082650)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082371) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082371)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082371 AND `dispatched_services`.`id` = 2411 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082371, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2411
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082371 LIMIT 1
[1m[36mDispatchedService Load (35.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082650 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082650)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082371 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082371 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (93.0ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082650
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082371
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 456ms (Views: 136.1ms | ActiveRecord: 115.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:04:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '071856f9d1e625d6bd86bd28b04a6f7b' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:25', 'some book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'format', 'book', 969082651, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'genre', 1, 'book', 969082651, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'author', 1, 'smith', 969082651, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'title', 1, 'some book', 969082651, 'Some Book')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:04:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082651, '071856f9d1e625d6bd86bd28b04a6f7b')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082372
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:25', NULL, 969082372, 'BorrowDirect', 'queued', '2015-02-19 23:04:25')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2412[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082372 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082651)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082651)[0m
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082372) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082372)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082372 AND `dispatched_services`.`id` = 2412 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082372, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2412[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082372 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.7ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082651 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082651)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082372 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082372 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082651
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082372
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 240ms (Views: 20.4ms | ActiveRecord: 126.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:04:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '919a622b0e8b417bb4f87b84bf66380b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:25', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'format', 'journal', 969082652, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'genre', 1, 'article', 969082652, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'title', 1, 'foo', 969082652, 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:25', 'author', 1, 'bar', 969082652, 'bar')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:04:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082652, '919a622b0e8b417bb4f87b84bf66380b')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082373
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:25', NULL, 969082373, 'BorrowDirect', 'queued', '2015-02-19 23:04:25')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2413[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082373 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082652)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082652)[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082373) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082373)[0m
[1m[35mDispatchedService Load (2.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (13.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082373 AND `dispatched_services`.`id` = 2413 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:25' WHERE `dispatched_services`.`id` = 2413
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082373 LIMIT 1
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082652 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082652)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082373 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082373 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082652
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (38.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082373
[1m[36m (13.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 246ms (Views: 53.2ms | ActiveRecord: 122.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60943f1834c47d97258868043ab34e92' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:26', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'format', 'book', 969082653, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'genre', 1, 'book', 969082653, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'title', 1, 'foo', 969082653, 'foo')[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:04:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082653, '60943f1834c47d97258868043ab34e92')
[1m[36m (13.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082374 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:26', NULL, 969082374, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:04:26')
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2414[0m
[1m[35m (13.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082374" for 127.0.0.1 at 2015-02-19 18:04:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082374"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082374 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082653 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082653)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082374[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082374[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082374 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082374[0m [["request_id", 969082374]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082653 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082653)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082374 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082374 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082653
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082374
[1m[36m (13.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 67ms (Views: 18.8ms | ActiveRecord: 41.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c66a044cd6c7255ef5c91f4461edec41' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:26', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'format', 'journal', 969082654, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'isbn', 1, '9789810743734', 969082654, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082654, 'c66a044cd6c7255ef5c91f4461edec41')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082375
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:26', NULL, 969082375, 'BorrowDirect', 'queued', '2015-02-19 23:04:26')
[1m[36m (13.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2415[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082654)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654)[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082375) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082375)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`id` = 2415 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082375, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:26', 'Choose your delivery location', 969082375, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2415
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082654 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082375 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082654
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082375
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 252ms (Views: 23.8ms | ActiveRecord: 111.6ms)
Started GET "/borrow_direct/BorrowDirect/969082375?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:04:26 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082375"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082375 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2415
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:26', 969082375, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082654 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082375&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 49ms (ActiveRecord: 39.0ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2415[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013368
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082375&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:04:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082375", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:04:26-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082654 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082375
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082375 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 [["request_id", 969082375]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082654 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082654)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082375 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082375 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082654[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082375[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 117ms (Views: 63.0ms | ActiveRecord: 45.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:04:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '10ada5314b81c91840315458360fa4ca' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:26', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'format', 'journal', 969082655, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'isbn', 1, '0109836413', 969082655, '0109836413')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:04:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082655, '10ada5314b81c91840315458360fa4ca')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082376[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:26', NULL, 969082376, 'BorrowDirect', 'queued', '2015-02-19 23:04:26')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2416
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082376 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082655)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082655)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082376) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082376)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082376 AND `dispatched_services`.`id` = 2416 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082376, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:26', 'This item is not currently available from BorrowDirect', 969082376, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:26' WHERE `dispatched_services`.`id` = 2416[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082376 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082655 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082655)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082376 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082376 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082655
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082376
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 20.3ms | ActiveRecord: 113.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f4184e0a9adaef55ce216a9bfa8907bc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:26', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'format', 'journal', 969082656, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:26', 'isbn', 1, '9789810743734', 969082656, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082656, 'f4184e0a9adaef55ce216a9bfa8907bc')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082377
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:27', NULL, 969082377, 'BorrowDirect', 'queued', '2015-02-19 23:04:27')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2417[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082656)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082377) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082377)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`id` = 2417 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082377, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:27', 'Choose your delivery location', 969082377, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2417
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082656 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082377 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082656
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082377
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 252ms (Views: 20.8ms | ActiveRecord: 114.8ms)
Started GET "/borrow_direct/BorrowDirect/969082377?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:04:27 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082377"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082377 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2417
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:27', 969082377, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082656 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082377&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 54ms (ActiveRecord: 38.6ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2417[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013373
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082377&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:04:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082377", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:04:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082656 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082377
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082377 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 [["request_id", 969082377]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082656 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082656)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082377 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (42.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082377 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082656[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082377[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 116ms (Views: 61.0ms | ActiveRecord: 45.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f93917388e3b601347c58ea3efe0a33' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:27', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:27', 'format', 'journal', 969082657, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:27', 'isbn', 1, '9789810743734', 969082657, '9789810743734')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082657, '0f93917388e3b601347c58ea3efe0a33')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082378[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:27', NULL, 969082378, 'BorrowDirect', 'queued', '2015-02-19 23:04:27')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2418
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082378 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082657)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082657)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082378) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082378)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082378 AND `dispatched_services`.`id` = 2418 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082378, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:27', 'Choose your delivery location', 969082378, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2418[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082378 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082657 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082657)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082378 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082378 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082378 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082657[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082378[0m
[1m[35m (26.1ms)[0m COMMIT
Completed 200 OK in 265ms (Views: 22.1ms | ActiveRecord: 126.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:04:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1af5ce47fc67d41d40fbad672c7cb666' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:27', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:27', 'format', 'journal', 969082658, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:27', 'isbn', 1, '9789810743734', 969082658, '9789810743734')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082658, '1af5ce47fc67d41d40fbad672c7cb666')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082379[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:27', NULL, 969082379, 'BorrowDirect', 'queued', '2015-02-19 23:04:27')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2419
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082658)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082379) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082379)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`id` = 2419 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082379, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:27', 'Choose your delivery location', 969082379, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:04:27' WHERE `dispatched_services`.`id` = 2419[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082658 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082379 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082658[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082379[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 259ms (Views: 22.0ms | ActiveRecord: 117.0ms)
Started GET "/borrow_direct/BorrowDirect/969082379" for 127.0.0.1 at 2015-02-19 18:04:28 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082379"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082379 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082379, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082658 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082379&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 23.1ms)
Started GET "/resolve?umlaut.request_id=969082379&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:04:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082379", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:04:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082658 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082379
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 [["request_id", 969082379]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082658 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082658)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082379 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082379 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082379 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082658
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (44.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082379
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 120ms (Views: 64.3ms | ActiveRecord: 46.2ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8755f0ecb2a6cb94311d877e698f6801' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:28', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082659, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'title', 1, 'title', 969082659, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'author', 1, 'au', 969082659, 'au')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082659, '8755f0ecb2a6cb94311d877e698f6801')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082380, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082380, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082380 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082380, 'test_bd', 'successful', '2015-02-19 23:04:28')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2420[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082380[0m
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082380 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f51441c874cf2e78c9b4819a02d13576' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:28', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082660, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'title', 1, 'title', 969082660, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'author', 1, 'au', 969082660, 'au')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (5.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082660, 'f51441c874cf2e78c9b4819a02d13576')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082381, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082381 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082381 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082381, 'test_bd', 'successful', '2015-02-19 23:04:28')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2421
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082381
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '878fa6a117ecf56b3362101612b1d06c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:28', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082661, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'title', 1, 'title', 969082661, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'author', 1, 'au', 969082661, 'au')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082661, '878fa6a117ecf56b3362101612b1d06c')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082382, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082382 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082382, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082382 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082382, 'test_bd', 'successful', '2015-02-19 23:04:28')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2422[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082382[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e03ef12d833f4ae16a3286a89346c715' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:04:28', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082662, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'title', 1, 'title', 969082662, 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'author', 1, 'au', 969082662, 'au')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082662, 'e03ef12d833f4ae16a3286a89346c715')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 969082383, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082383 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082383, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082383 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082383, 'test_bd', 'successful', '2015-02-19 23:04:28')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2423
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082383
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '35d5d7619608789fcf6412ea47499106' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:28', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082663, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'isbn', 1, '9789810743734', 969082663, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082663, '35d5d7619608789fcf6412ea47499106')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082384 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082384, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 'Choose your delivery location', 969082384, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082384 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082384, 'test_bd', 'successful', '2015-02-19 23:04:28')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2424
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082384
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1067adb04c83fe72fcd2b7b2b4038ec' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:28', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082664, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'isbn', 1, '000000000', 969082664, '000000000')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082664, 'c1067adb04c83fe72fcd2b7b2b4038ec')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082385 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082385, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:28', 'This item is not currently available from BorrowDirect', 969082385, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082385 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:28', NULL, 969082385, 'test_bd', 'successful', '2015-02-19 23:04:28')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:28' WHERE `dispatched_services`.`id` = 2425
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082385
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f443865afe2f58156146881653bca05a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:28', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'format', 'journal', 969082665, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:28', 'isbn', 1, '9789810743734', 969082665, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082665, 'f443865afe2f58156146881653bca05a')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082386 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082386, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082386 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:29', NULL, 969082386, 'test_bd', 'failed_temporary', '2015-02-19 23:04:29')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:04:29' WHERE `dispatched_services`.`id` = 2426[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082386[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2def6e5dbb4b5ba8100a7b390e95ce6' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:29', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'format', 'journal', 969082666, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'isbn', 1, '0109836413', 969082666, '0109836413')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:04:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082666, 'e2def6e5dbb4b5ba8100a7b390e95ce6')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082387 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082387, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 'This item is not currently available from BorrowDirect', 969082387, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082387 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:29', NULL, 969082387, 'test_bd', 'successful', '2015-02-19 23:04:29')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:29' WHERE `dispatched_services`.`id` = 2427[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082387[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.1ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd0673a0f6dc5dba0a142a149f35588ab' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:29', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'format', 'journal', 969082667, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'isbn', 1, '121212', 969082667, '121212')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082667, 'd0673a0f6dc5dba0a142a149f35588ab')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082388"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082388 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082388 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082388
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082388, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082388\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082667 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082667)
Redirected to http://test.host/resolve?umlaut.request_id=969082388&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 25.8ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1dd066e80e37227e3e897fdef63d192a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:29', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'format', 'journal', 969082668, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'isbn', 1, '121212', 969082668, '121212')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082668, '1dd066e80e37227e3e897fdef63d192a')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082389, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082389"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082389 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082389 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013394
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082389, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013394\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082668 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082668)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082389&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 24.1ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca2ae8733ce9ad556fb947e8bc81165a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:29', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'format', 'journal', 969082669, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:29', 'isbn', 1, '121212', 969082669, '121212')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082669, 'ca2ae8733ce9ad556fb947e8bc81165a')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082390, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082390"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082390 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082390 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082390 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:29', NULL, 969082390, 'BorrowDirect', 'in_progress', '2015-02-19 23:04:29')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:29' WHERE `dispatched_services`.`id` = 2428[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:29', 969082390, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082669 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082669)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082390&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 69ms (ActiveRecord: 58.9ms)
[1m[35mDispatchedService Load (2.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082390
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082390 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082390 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:04:29' WHERE `dispatched_services`.`id` = 2428
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013397[0m
[1m[35m (14.0ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8baef34a77eafd652d62ce5ebee02162' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:30', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:30', 'format', 'journal', 969082670, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:30', 'isbn', 1, '121212', 969082670, '121212')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082670, '8baef34a77eafd652d62ce5ebee02162')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:30', 969082391, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082391"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082391 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082391 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082391 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:30', NULL, 969082391, 'BorrowDirect', 'in_progress', '2015-02-19 23:04:30')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:30' WHERE `dispatched_services`.`id` = 2429
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:30', 969082391, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082670 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082670)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082391&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 78ms (ActiveRecord: 57.8ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mDispatchedService Load (3.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082391 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '27724c1a51786c84805139d7c9855661' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35m (4.8ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:04:30' WHERE `dispatched_services`.`id` = 2429[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:30', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:30', 'format', 'journal', 969082671, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:30', 'isbn', 1, '121212', 969082671, '121212')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mSQL (2.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013399
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:04:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082671, '27724c1a51786c84805139d7c9855661')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082392"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082392 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082392 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:04:31', 969082392, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082671 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082671)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082392&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A04%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 39ms (ActiveRecord: 24.7ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f6e0f601c3140c1e9ce562889530e3fa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:04:31', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:31', 'format', 'journal', 969082672, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:04:31', 'isbn', 1, '9789810743734', 969082672, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:04:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082672, 'f6e0f601c3140c1e9ce562889530e3fa')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082393 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:04:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082393, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082393 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:04:31', NULL, 969082393, 'test_bd', 'successful', '2015-02-19 23:04:31')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:04:31' WHERE `dispatched_services`.`id` = 2430
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082393
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66b5d04dcb600943c90477a7deb0b924' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:05:03', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (6.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'format', 'journal', 969082673, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'auinit', 1, 'rd', 969082673, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'aulast', 1, 'kaplan', 969082673, 'Kaplan')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'atitle', 1, 'the coming anarchy', 969082673, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'title', 1, 'the atlantic monthly', 969082673, 'The Atlantic monthly')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'volume', 1, '273', 969082673, '273')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'issue', 1, '2', 969082673, '2')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'date', 1, '1994', 969082673, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'spage', 1, '44', 969082673, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:03', 'issn', 1, '1072-7825', 969082673, '1072-7825')
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:05:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082673, 'info:sid/google', '66b5d04dcb600943c90477a7deb0b924')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082394 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:03', NULL, 969082394, 'test_bd', 'successful', '2015-02-19 23:05:03')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:03' WHERE `dispatched_services`.`id` = 2431
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082394
[1m[36mServiceResponse Exists (2.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082394 LIMIT 1[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '842bca8b24c7bf5bce1760eed6909775' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:04', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'format', 'journal', 969082674, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082674, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'aulast', 1, 'grimes', 969082674, 'Grimes')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:05:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082674, '842bca8b24c7bf5bce1760eed6909775')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082395, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082395 ORDER BY id ASC[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '677ba8386948d5d252f8bf6427d231f4' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:05:04', 'biological foundations of language', '1967')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'format', 'book', 969082675, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'auinit', 1, 'eh', 969082675, 'EH')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'aulast', 1, 'lenneberg', 969082675, 'Lenneberg')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'title', 1, 'biological foundations of language', 969082675, 'Biological foundations of language')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'genre', 1, 'book', 969082675, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'date', 1, '1967', 969082675, '1967')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:05:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082675, 'info:sid/google', '677ba8386948d5d252f8bf6427d231f4')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082396 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082396, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082396 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:04', NULL, 969082396, 'test_bd', 'successful', '2015-02-19 23:05:04')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2432
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082396
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c4ce85db3cf4cc947bc1353a6e0aebd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:04', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'format', 'journal', 969082676, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'isbn', 1, '9789810743734', 969082676, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082676, '0c4ce85db3cf4cc947bc1353a6e0aebd')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082397[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:04', NULL, 969082397, 'test_bd', 'queued', '2015-02-19 23:05:04')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2433
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082397 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082676)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082676)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082397) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082397)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082397 AND `dispatched_services`.`id` = 2433 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082397, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2433
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082397 LIMIT 1
[1m[36mDispatchedService Load (38.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082676 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082676)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.0ms)
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082397 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082397 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (92.9ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082676
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082397
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 442ms (Views: 136.1ms | ActiveRecord: 116.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:05:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89fc509fa82a6e32b5e32167464ad465' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:04', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'format', 'book', 969082677, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'genre', 1, 'book', 969082677, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'author', 1, 'smith', 969082677, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:04', 'title', 1, 'some book', 969082677, 'Some Book')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:05:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082677, '89fc509fa82a6e32b5e32167464ad465')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082398
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:04', NULL, 969082398, 'BorrowDirect', 'queued', '2015-02-19 23:05:04')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2434[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082398 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082677)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082677)[0m
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082398) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082398)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082398 AND `dispatched_services`.`id` = 2434 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082398, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:04' WHERE `dispatched_services`.`id` = 2434[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082398 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082677 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082677)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082398 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082398 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082677
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082398
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 243ms (Views: 20.1ms | ActiveRecord: 128.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:05:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f73052d4185a8a757e62743ca28d9e6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:05', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'format', 'journal', 969082678, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'genre', 1, 'article', 969082678, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'title', 1, 'foo', 969082678, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'author', 1, 'bar', 969082678, 'bar')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:05:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082678, '9f73052d4185a8a757e62743ca28d9e6')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082399
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:05', NULL, 969082399, 'BorrowDirect', 'queued', '2015-02-19 23:05:05')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2435[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082399 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082678)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082678)[0m
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082399) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082399)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082399 AND `dispatched_services`.`id` = 2435 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2435
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082399 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082678 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082678)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082399 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082399 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082678[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (39.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082399[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 247ms (Views: 56.2ms | ActiveRecord: 116.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c0f77fa21789f237c618bcf8b3c313bb' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:05', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'format', 'book', 969082679, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'genre', 1, 'book', 969082679, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'title', 1, 'foo', 969082679, 'foo')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:05:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082679, 'c0f77fa21789f237c618bcf8b3c313bb')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082400 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:05', NULL, 969082400, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:05:05')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2436
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082400" for 127.0.0.1 at 2015-02-19 18:05:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082400"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082400 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082679 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082679)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082400
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082400
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082400 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082400 [["request_id", 969082400]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082679 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082679)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082400 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082400 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082679[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082400[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 18.1ms | ActiveRecord: 47.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9183ef125946c7c351f41fbfa6df1e98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:05', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'format', 'journal', 969082680, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'isbn', 1, '9789810743734', 969082680, '9789810743734')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082680, '9183ef125946c7c351f41fbfa6df1e98')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082401[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:05', NULL, 969082401, 'BorrowDirect', 'queued', '2015-02-19 23:05:05')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2437
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082680)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082401) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082401)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`id` = 2437 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082401, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:05', 'Choose your delivery location', 969082401, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2437[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082680 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082401 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082680[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082401[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 255ms (Views: 25.3ms | ActiveRecord: 115.0ms)
Started GET "/borrow_direct/BorrowDirect/969082401?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:05:05 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082401"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082401 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2437[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:05', 969082401, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082680 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082401&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 49ms (ActiveRecord: 39.3ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:05:05' WHERE `dispatched_services`.`id` = 2437
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013408[0m
[1m[35m (14.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082401&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:05:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082401", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:05:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082680 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082401[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082401 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401[0m [["request_id", 969082401]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082680 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082680)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082401 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (41.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (42.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (43.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082401 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082680
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082401
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 118ms (Views: 63.1ms | ActiveRecord: 45.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:05:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'deaf7e49cd6f2db68e952f9dcd9d0c83' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:05', '0109836413')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'format', 'journal', 969082681, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:05', 'isbn', 1, '0109836413', 969082681, '0109836413')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:05:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082681, 'deaf7e49cd6f2db68e952f9dcd9d0c83')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082402
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:06', NULL, 969082402, 'BorrowDirect', 'queued', '2015-02-19 23:05:06')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2438[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082402 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082681)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082681)[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082402) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082402)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082402 AND `dispatched_services`.`id` = 2438 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082402, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (1.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:06', 'This item is not currently available from BorrowDirect', 969082402, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2438
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082402 LIMIT 1
[1m[36mDispatchedService Load (3.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[35mDispatchedService Load (3.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402
[1m[36mReferent Load (4.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082681 LIMIT 1[0m
[1m[35mReferentValue Load (2.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082681)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (14.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082402 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082402 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082681[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082402[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 272ms (Views: 25.3ms | ActiveRecord: 125.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9722595f5a8b92883450d6e813f3ef69' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:06', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'format', 'journal', 969082682, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'isbn', 1, '9789810743734', 969082682, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082682, '9722595f5a8b92883450d6e813f3ef69')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082403[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36mDispatchedService Load (4.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:06', NULL, 969082403, 'BorrowDirect', 'queued', '2015-02-19 23:05:06')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2439
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082682)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082403) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082403)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`id` = 2439 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082403, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:06', 'Choose your delivery location', 969082403, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2439[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082682 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082403 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082682[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082403[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 260ms (Views: 21.9ms | ActiveRecord: 122.6ms)
Started GET "/borrow_direct/BorrowDirect/969082403?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:05:06 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082403"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082403 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2439[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:06', 969082403, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082682 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082403&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.3ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2439
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013413[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082403&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:05:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082403", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:05:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082682 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082403[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082403 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403[0m [["request_id", 969082403]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082682 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082682)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082403 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (42.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (43.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082403 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082682
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082403
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 117ms (Views: 61.6ms | ActiveRecord: 46.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85cab0dd6ee48007bc81f6e293a6d18b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:06', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'format', 'journal', 969082683, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'isbn', 1, '9789810743734', 969082683, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082683, '85cab0dd6ee48007bc81f6e293a6d18b')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082404
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:06', NULL, 969082404, 'BorrowDirect', 'queued', '2015-02-19 23:05:06')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2440[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082404 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082683)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082683)[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082404) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082404)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082404 AND `dispatched_services`.`id` = 2440 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082404, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:06', 'Choose your delivery location', 969082404, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:06' WHERE `dispatched_services`.`id` = 2440
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082404 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082683 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082683)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082404 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082404 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082404 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082683
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082404
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 252ms (Views: 20.9ms | ActiveRecord: 115.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:05:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e3f7d062fc2944d934a2166f662c469' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:06', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'format', 'journal', 969082684, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:06', 'isbn', 1, '9789810743734', 969082684, '9789810743734')
[1m[36m (22.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082684, '6e3f7d062fc2944d934a2166f662c469')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082405
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:07', NULL, 969082405, 'BorrowDirect', 'queued', '2015-02-19 23:05:07')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2441[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082684)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684)[0m
[1m[35mServiceResponse Load (4.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082405) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082405)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`id` = 2441 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082405, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 'Choose your delivery location', 969082405, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2441
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082684 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082405 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082684
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082405
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 267ms (Views: 22.0ms | ActiveRecord: 128.8ms)
Started GET "/borrow_direct/BorrowDirect/969082405" for 127.0.0.1 at 2015-02-19 18:05:07 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082405"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082405 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082405, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082684 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082405&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.4ms)
Started GET "/resolve?umlaut.request_id=969082405&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:05:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082405", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:05:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082684 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082405[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405[0m [["request_id", 969082405]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082684 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082684)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082405 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082405 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082405 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082684[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (44.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082405[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 120ms (Views: 64.7ms | ActiveRecord: 46.0ms)
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '999e8967372e3c67b712cd8f42234f28' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082685, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '9789810743734', 969082685, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082685, '999e8967372e3c67b712cd8f42234f28')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082406 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082406, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082406 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:07', NULL, 969082406, 'test_bd', 'successful', '2015-02-19 23:05:07')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2442[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082406[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8edcf1f525f071c09ca04f00dfdc8dd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082686, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '121212', 969082686, '121212')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082686, 'c8edcf1f525f071c09ca04f00dfdc8dd')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082407"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082407 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082407 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082407
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082407, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082407\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082686 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082686)
Redirected to http://test.host/resolve?umlaut.request_id=969082407&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.1ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f1cc4e82df92ed72b35ca2a7e7d94c65' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082687, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '121212', 969082687, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082687, 'f1cc4e82df92ed72b35ca2a7e7d94c65')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082408, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082408"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082408 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082408 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013421
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082408, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013421\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082687 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082687)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082408&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.6ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fe7b3a2545c6d279ba588bd5d14dc3b1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082688, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '121212', 969082688, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082688, 'fe7b3a2545c6d279ba588bd5d14dc3b1')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082409, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082409"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082409 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082409 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082409 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:07', NULL, 969082409, 'BorrowDirect', 'in_progress', '2015-02-19 23:05:07')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2443[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082409, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082688 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082688)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082409&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 70ms (ActiveRecord: 59.7ms)
[1m[35mDispatchedService Load (2.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082409
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082409 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082409 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2443
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013424[0m
[1m[35m (14.2ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db005f3bcd79109d3ba4e64f468dcf0a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:07', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'format', 'journal', 969082689, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:07', 'isbn', 1, '121212', 969082689, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082689, 'db005f3bcd79109d3ba4e64f468dcf0a')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:07', 969082410, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082410"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082410 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082410 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082410 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:07', NULL, 969082410, 'BorrowDirect', 'in_progress', '2015-02-19 23:05:07')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:07' WHERE `dispatched_services`.`id` = 2444
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082410, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082689 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082689)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082410&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 72ms (ActiveRecord: 58.4ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5fe33ec977ecddbbed31f6e9571b44ad' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:08', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082690, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'isbn', 1, '121212', 969082690, '121212')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082690, '5fe33ec977ecddbbed31f6e9571b44ad')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082411"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082411 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082411 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082411, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082690 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082690)
Redirected to http://test.host/resolve?umlaut.request_id=969082411&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.2ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4241350781921320b8ec408853d2e2e1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:08', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082691, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'title', 1, 'title', 969082691, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'author', 1, 'au', 969082691, 'au')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082691, '4241350781921320b8ec408853d2e2e1')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082412, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082412 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082412 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082412, 'test_bd', 'successful', '2015-02-19 23:05:08')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2445
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082412
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '484eb2213483f1ae85a077ba0f727f35' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:08', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082692, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'title', 1, 'title', 969082692, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'author', 1, 'au', 969082692, 'au')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082692, '484eb2213483f1ae85a077ba0f727f35')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082413, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082413 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082413, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082413 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082413, 'test_bd', 'successful', '2015-02-19 23:05:08')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2446[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082413[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a175fcc636a050cfda9605f8f0e292b4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:08', 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082693, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'title', 1, 'title', 969082693, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'author', 1, 'au', 969082693, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082693, 'a175fcc636a050cfda9605f8f0e292b4')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082414, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082414 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082414, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082414 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082414, 'test_bd', 'successful', '2015-02-19 23:05:08')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2447
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082414
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f3e6b8d4fd2dcb58e7039b915178e15' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:05:08', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082694, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'title', 1, 'title', 969082694, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'author', 1, 'au', 969082694, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082694, '0f3e6b8d4fd2dcb58e7039b915178e15')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 969082415, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082415, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082415 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082415, 'test_bd', 'successful', '2015-02-19 23:05:08')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2448
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082415
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082415 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81d26f172fecc40d3c0a4b090b17927d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:08', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082695, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'isbn', 1, '9789810743734', 969082695, '9789810743734')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082695, '81d26f172fecc40d3c0a4b090b17927d')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082416 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082416, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 'Choose your delivery location', 969082416, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082416 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082416, 'test_bd', 'successful', '2015-02-19 23:05:08')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2449[0m
[1m[35m (13.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082416[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf33c798f2ad0b41f07c54835199d856' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:08', '0109836413')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082696, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'isbn', 1, '0109836413', 969082696, '0109836413')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082696, 'bf33c798f2ad0b41f07c54835199d856')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082417 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082417, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:08', 'This item is not currently available from BorrowDirect', 969082417, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082417 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:08', NULL, 969082417, 'test_bd', 'successful', '2015-02-19 23:05:08')
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:08' WHERE `dispatched_services`.`id` = 2450[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082417[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e0218af96b07145204e7ad87ca395cd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:08', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'format', 'journal', 969082697, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:08', 'isbn', 1, '9789810743734', 969082697, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:05:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082697, '4e0218af96b07145204e7ad87ca395cd')[0m
[1m[35m (13.6ms)[0m COMMIT
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082418 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082418, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082418 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:09', NULL, 969082418, 'test_bd', 'failed_temporary', '2015-02-19 23:05:09')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:05:09' WHERE `dispatched_services`.`id` = 2451
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082418
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48279eef45dd465bef60fb25d4b1643b' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:09', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:09', 'format', 'journal', 969082698, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:09', 'isbn', 1, '000000000', 969082698, '000000000')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:05:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082698, '48279eef45dd465bef60fb25d4b1643b')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082419 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:05:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082419, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:09', 'This item is not currently available from BorrowDirect', 969082419, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (13.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082419 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:09', NULL, 969082419, 'test_bd', 'successful', '2015-02-19 23:05:09')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:09' WHERE `dispatched_services`.`id` = 2452
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082419
[1m[36m (0.8ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a7634b6ea67f6da857371e39bf74932' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:29', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:29', 'format', 'journal', 969082699, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:29', 'isbn', 1, '121212', 969082699, '121212')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082699, '4a7634b6ea67f6da857371e39bf74932')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:29', 969082420, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082420"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082420 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082420 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082420 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:29', NULL, 969082420, 'BorrowDirect', 'in_progress', '2015-02-19 23:05:29')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:29' WHERE `dispatched_services`.`id` = 2453[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:29', 969082420, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082699 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082699)[0m
Completed 500 Internal Server Error in 153ms
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:49:in `block in submit_request'
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082420 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ae832a867e6720a708b85deb0ae758f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:05:56', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:56', 'format', 'journal', 969082700, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:05:56', 'isbn', 1, '121212', 969082700, '121212')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:05:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082700, '2ae832a867e6720a708b85deb0ae758f')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:56', 969082421, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082421"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082421 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082421 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082421 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:05:57', NULL, 969082421, 'BorrowDirect', 'in_progress', '2015-02-19 23:05:57')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:05:57' WHERE `dispatched_services`.`id` = 2454[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:05:57', 969082421, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082700 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082700)[0m
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082421&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A05%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 132ms (ActiveRecord: 65.8ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ce50cc5c97868923204bffb2088b87f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:06:15', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:06:15', 'format', 'journal', 969082701, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:06:15', 'isbn', 1, '121212', 969082701, '121212')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:06:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082701, '3ce50cc5c97868923204bffb2088b87f')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:06:15', 969082422, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082422"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082422 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082422 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082422 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:06:15', NULL, 969082422, 'BorrowDirect', 'in_progress', '2015-02-19 23:06:15')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:06:15' WHERE `dispatched_services`.`id` = 2455[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:06:15', 969082422, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082701 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082701)[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f5c47f4e4a02687b9541ccf5ae4312d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:07:48', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:07:48', 'format', 'journal', 969082702, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:07:48', 'isbn', 1, '121212', 969082702, '121212')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:07:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082702, '1f5c47f4e4a02687b9541ccf5ae4312d')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:07:48', 969082423, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082423"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082423 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082423 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082423 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:07:48', NULL, 969082423, 'BorrowDirect', 'in_progress', '2015-02-19 23:07:48')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:07:48' WHERE `dispatched_services`.`id` = 2456[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:07:48', 969082423, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082702 LIMIT 1
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082702)[0m
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082423&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A07%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 1220ms (ActiveRecord: 65.5ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85897b03d046e2cb80ce4ed97047f5fb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:07:55', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:07:55', 'format', 'journal', 969082703, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:07:55', 'isbn', 1, '121212', 969082703, '121212')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:07:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082703, '85897b03d046e2cb80ce4ed97047f5fb')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:07:55', 969082424, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082424"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082424 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082424 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082424 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:07:56', NULL, 969082424, 'BorrowDirect', 'in_progress', '2015-02-19 23:07:56')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:07:56' WHERE `dispatched_services`.`id` = 2457[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:07:56', 969082424, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082703 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082703)[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (2.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'daa7c7e34e2aa661c0d7219b746ab7ae' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:11:19', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:11:19', 'format', 'journal', 969082704, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:11:19', 'isbn', 1, '121212', 969082704, '121212')
[1m[36m (28.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:11:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082704, 'daa7c7e34e2aa661c0d7219b746ab7ae')[0m
[1m[35m (25.1ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:11:19', 969082425, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082425"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082425 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082425 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082425 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:11:19', NULL, 969082425, 'BorrowDirect', 'in_progress', '2015-02-19 23:11:19')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:11:19' WHERE `dispatched_services`.`id` = 2458[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:11:19', 969082425, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082704 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082704)[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c7321169614878151766eb41e84fb07' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:11:46', '121212')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:11:46', 'format', 'journal', 969082705, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:11:46', 'isbn', 1, '121212', 969082705, '121212')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:11:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082705, '5c7321169614878151766eb41e84fb07')[0m
[1m[35m (24.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:11:46', 969082426, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (65.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082426"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082426 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082426 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082426 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:12:23', NULL, 969082426, 'BorrowDirect', 'in_progress', '2015-02-19 23:12:23')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:12:23' WHERE `dispatched_services`.`id` = 2459[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:24', 969082426, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082705 LIMIT 1
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082705)[0m
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082426&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A12%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 1141ms (ActiveRecord: 69.0ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9080caf8dab2b4de6f81e67eb12da121' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:12:30', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:30', 'format', 'journal', 969082706, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:30', 'isbn', 1, '121212', 969082706, '121212')
[1m[36m (33.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:12:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082706, '9080caf8dab2b4de6f81e67eb12da121')[0m
[1m[35m (78.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:30', 969082427, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '787ab11eddb96d637a2f5a2ea730fc70' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:12:49', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:49', 'format', 'journal', 969082707, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:49', 'isbn', 1, '121212', 969082707, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:12:49', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082707, '787ab11eddb96d637a2f5a2ea730fc70')[0m
[1m[35m (39.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:49', 969082428, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082428"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082428 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082428 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082428 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:12:49', NULL, 969082428, 'BorrowDirect', 'in_progress', '2015-02-19 23:12:49')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:12:49' WHERE `dispatched_services`.`id` = 2460[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:49', 969082428, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082707 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082707)[0m
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082428&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A12%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 1016ms (ActiveRecord: 75.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (3.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '92cccb3b8ae9d2f95b8562b8a404ae0a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:12:56', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:56', 'format', 'journal', 969082708, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:12:56', 'isbn', 1, '121212', 969082708, '121212')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:12:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082708, '92cccb3b8ae9d2f95b8562b8a404ae0a')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:56', 969082429, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082429"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082429 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082429 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082429 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:12:56', NULL, 969082429, 'BorrowDirect', 'in_progress', '2015-02-19 23:12:56')
[1m[36m (29.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:12:56' WHERE `dispatched_services`.`id` = 2461[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:12:56', 969082429, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (28.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082708 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082708)[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9bddd425d0a2d0ce2fe6cc5d63b5b36d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:14:42', '121212')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:14:42', 'format', 'journal', 969082709, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:14:42', 'isbn', 1, '121212', 969082709, '121212')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (6.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:14:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082709, '9bddd425d0a2d0ce2fe6cc5d63b5b36d')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:14:42', 969082430, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082430"}
[1m[35mRequest Load (2.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082430 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082430 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082430 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:14:42', NULL, 969082430, 'BorrowDirect', 'in_progress', '2015-02-19 23:14:42')
[1m[36m (25.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:14:42' WHERE `dispatched_services`.`id` = 2462[0m
[1m[35m (29.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:14:42', 969082430, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082709 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082709)[0m
Redirected to http://example.org
Completed 302 Found in 161ms (ActiveRecord: 96.6ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082430 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e64a1fd7f44874d4c9b3c3ce6d443f0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:15:57', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:15:57', 'format', 'journal', 969082710, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:15:57', 'isbn', 1, '121212', 969082710, '121212')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:15:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082710, '4e64a1fd7f44874d4c9b3c3ce6d443f0')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:15:57', 969082431, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082431"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082431 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082431 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082431 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:15:57', NULL, 969082431, 'BorrowDirect', 'in_progress', '2015-02-19 23:15:57')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:15:57' WHERE `dispatched_services`.`id` = 2463[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:15:57', 969082431, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (30.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082710 LIMIT 1
[1m[36mReferentValue Load (1.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082710)[0m
Redirected to http://example.org
Completed 302 Found in 150ms (ActiveRecord: 84.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (2.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '33deb9b303c9aab8e131adc9c743feba' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:15:57', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:15:57', 'format', 'journal', 969082711, 'journal')[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082431 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:15:57', 'isbn', 1, '121212', 969082711, '121212')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:15:57' WHERE `dispatched_services`.`id` = 2463[0m
[1m[35m (28.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013464
[1m[36m (43.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:15:57', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082711, '33deb9b303c9aab8e131adc9c743feba')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:15:57', 969082432, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082432"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082432 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082432 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082432 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:15:57', NULL, 969082432, 'BorrowDirect', 'in_progress', '2015-02-19 23:15:57')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:15:57' WHERE `dispatched_services`.`id` = 2464
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:15:57', 969082432, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082711 LIMIT 1[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082711)
Redirected to http://example.org
Completed 302 Found in 73ms (ActiveRecord: 59.6ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1816154b75bd88049188f8f8bf73391e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:16:52', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:16:52', 'format', 'journal', 969082712, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:16:52', 'isbn', 1, '121212', 969082712, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082712, '1816154b75bd88049188f8f8bf73391e')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:16:52', 969082433, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082433"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082433 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082433 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082433 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:16:52', NULL, 969082433, 'BorrowDirect', 'in_progress', '2015-02-19 23:16:52')
[1m[36m (36.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:16:52' WHERE `dispatched_services`.`id` = 2465[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:16:52', 969082433, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082712 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082712)[0m
Redirected to http://example.org
Completed 302 Found in 152ms (ActiveRecord: 88.3ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2acb7cd22946267e858dba221376188c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:16:52', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:16:52', 'format', 'journal', 969082713, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:16:52', 'isbn', 1, '121212', 969082713, '121212')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (10.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082713, '2acb7cd22946267e858dba221376188c')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:16:52', 969082434, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082434"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082434 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082434 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082434 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:16:52', NULL, 969082434, 'BorrowDirect', 'in_progress', '2015-02-19 23:16:52')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:16:53' WHERE `dispatched_services`.`id` = 2466[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:16:53', 969082434, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082713 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082713)[0m
Redirected to http://example.org
Completed 302 Found in 76ms (ActiveRecord: 65.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '936b67204d16107fa6888cde52dd2660' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:17:04', '121212')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:04', 'format', 'journal', 969082714, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:04', 'isbn', 1, '121212', 969082714, '121212')
[1m[36m (31.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:17:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082714, '936b67204d16107fa6888cde52dd2660')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:04', 969082435, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082435"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082435 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082435 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082435 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:17:05', NULL, 969082435, 'BorrowDirect', 'in_progress', '2015-02-19 23:17:05')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:17:05' WHERE `dispatched_services`.`id` = 2467[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:05', 969082435, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (35.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082714 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082714)[0m
Redirected to http://example.org
Completed 302 Found in 151ms (ActiveRecord: 85.8ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082435 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:17:05' WHERE `dispatched_services`.`id` = 2467
[1m[36mRequest Load (3.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '899aed58e587944725497a2e36d2cb62' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:17:05', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:05', 'format', 'journal', 969082715, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:05', 'isbn', 1, '121212', 969082715, '121212')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013472
[1m[36m (30.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:17:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082715, '899aed58e587944725497a2e36d2cb62')[0m
[1m[35m (28.8ms)[0m COMMIT
[1m[36m (62.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:05', 969082436, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082436"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082436 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082436 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082436 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:17:05', NULL, 969082436, 'BorrowDirect', 'in_progress', '2015-02-19 23:17:05')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:17:05' WHERE `dispatched_services`.`id` = 2468
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:05', 969082436, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082715 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082715)
Redirected to http://example.org
Completed 302 Found in 110ms (ActiveRecord: 98.4ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (2.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb2bd14d17639ab0c07d0af02a6d658c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:17:26', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:26', 'format', 'journal', 969082716, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:26', 'isbn', 1, '121212', 969082716, '121212')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:17:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082716, 'fb2bd14d17639ab0c07d0af02a6d658c')[0m
[1m[35m (97.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:26', 969082437, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082437"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082437 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082437 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082437 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:17:26', NULL, 969082437, 'BorrowDirect', 'in_progress', '2015-02-19 23:17:26')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:17:26' WHERE `dispatched_services`.`id` = 2469[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:26', 969082437, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082716 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082716)[0m
Redirected to http://example.org
Completed 302 Found in 4737ms (ActiveRecord: 65.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7d334d1affb8d4a75b16c1d87066b733' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:17:31', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:31', 'format', 'journal', 969082717, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:17:31', 'isbn', 1, '121212', 969082717, '121212')
[1m[36m (24.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:17:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082717, '7d334d1affb8d4a75b16c1d87066b733')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:31', 969082438, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082438"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082438 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082438 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082438 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:17:31', NULL, 969082438, 'BorrowDirect', 'in_progress', '2015-02-19 23:17:31')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:17:31' WHERE `dispatched_services`.`id` = 2470[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:17:31', 969082438, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082717 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082717)[0m
Redirected to http://example.org
Completed 302 Found in 1882ms (ActiveRecord: 62.3ms)
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54cd5a2b7ff5e2e28f63e8fbe03bff5d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:18:29', '121212')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:29', 'format', 'journal', 969082718, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:29', 'isbn', 1, '121212', 969082718, '121212')
[1m[36m (27.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:18:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082718, '54cd5a2b7ff5e2e28f63e8fbe03bff5d')[0m
[1m[35m (25.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:30', 969082439, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082439"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082439 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082439 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082439 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:18:30', NULL, 969082439, 'BorrowDirect', 'in_progress', '2015-02-19 23:18:30')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:18:30' WHERE `dispatched_services`.`id` = 2471[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:30', 969082439, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082718 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082718)[0m
Redirected to http://example.org
Completed 302 Found in 133ms (ActiveRecord: 64.5ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a5411815c306ce6de17d8cd824f9447e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:18:30', '121212')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:30', 'format', 'journal', 969082719, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:30', 'isbn', 1, '121212', 969082719, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:18:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082719, 'a5411815c306ce6de17d8cd824f9447e')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:30', 969082440, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082440"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082440 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082440 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082440 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:18:30', NULL, 969082440, 'BorrowDirect', 'in_progress', '2015-02-19 23:18:30')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:18:30' WHERE `dispatched_services`.`id` = 2472[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:30', 969082440, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082719 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082719)[0m
Redirected to http://example.org
Completed 302 Found in 68ms (ActiveRecord: 58.9ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082440 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '271fcc38fa09e9cd734ed2243ded3c45' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:18:42', '121212')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:42', 'format', 'journal', 969082720, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:42', 'isbn', 1, '121212', 969082720, '121212')
[1m[36m (22.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:18:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082720, '271fcc38fa09e9cd734ed2243ded3c45')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:42', 969082441, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082441"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082441 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082441 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082441 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:18:42', NULL, 969082441, 'BorrowDirect', 'in_progress', '2015-02-19 23:18:42')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:18:42' WHERE `dispatched_services`.`id` = 2473[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:42', 969082441, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082720 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082720)[0m
Redirected to http://example.org
Completed 302 Found in 133ms (ActiveRecord: 64.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd7bf83fe7100d79b7048dc7356a5c572' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:18:42', '121212')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:42', 'format', 'journal', 969082721, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:18:42', 'isbn', 1, '121212', 969082721, '121212')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:18:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082721, 'd7bf83fe7100d79b7048dc7356a5c572')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:42', 969082442, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082442"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082442 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082442 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082442 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:18:42', NULL, 969082442, 'BorrowDirect', 'in_progress', '2015-02-19 23:18:42')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:18:42' WHERE `dispatched_services`.`id` = 2474[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:18:42', 969082442, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082721 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082721)[0m
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082442&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A18%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 73ms (ActiveRecord: 58.8ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5d337b2d280e18128f59b209d813a2c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:19:12', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:19:12', 'format', 'journal', 969082722, 'journal')[0m
[1m[35mSQL (7.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:19:12', 'isbn', 1, '121212', 969082722, '121212')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:19:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082722, 'c5d337b2d280e18128f59b209d813a2c')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:19:13', 969082443, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082443"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082443 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082443 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082443 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:19:13', NULL, 969082443, 'BorrowDirect', 'in_progress', '2015-02-19 23:19:13')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:19:13' WHERE `dispatched_services`.`id` = 2475[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:19:13', 969082443, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082722 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082722)[0m
Redirected to http://example.org
Completed 302 Found in 128ms (ActiveRecord: 63.1ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082443 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:19:13' WHERE `dispatched_services`.`id` = 2475
[1m[36mRequest Load (2.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f5357ef1e091687e304ea14c1beba214' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:19:13', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:19:13', 'format', 'journal', 969082723, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:19:13', 'isbn', 1, '121212', 969082723, '121212')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013488
[1m[36m (29.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082723, 'f5357ef1e091687e304ea14c1beba214')[0m
[1m[35m (28.3ms)[0m COMMIT
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:19:13', 969082444, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082444"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082444 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082444 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082444 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:19:13', NULL, 969082444, 'BorrowDirect', 'in_progress', '2015-02-19 23:19:13')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:19:13' WHERE `dispatched_services`.`id` = 2476
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:19:13', 969082444, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082723 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082723)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082444&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A19%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 88ms (ActiveRecord: 72.1ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de373229969b2a1bd5995269812b1660' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:20:01', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:20:01', 'format', 'journal', 969082724, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:20:01', 'isbn', 1, '121212', 969082724, '121212')
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:20:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082724, 'de373229969b2a1bd5995269812b1660')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:20:01', 969082445, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082445"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082445 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082445 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (2.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082445 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:20:01', NULL, 969082445, 'BorrowDirect', 'in_progress', '2015-02-19 23:20:01')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:20:01' WHERE `dispatched_services`.`id` = 2477[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:20:01', 969082445, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082724 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082724)[0m
Redirected to http://example.org
Completed 302 Found in 138ms (ActiveRecord: 64.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b4bb98e5a536726cdacf7436ccf027f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:20:01', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:20:01', 'format', 'journal', 969082725, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:20:01', 'isbn', 1, '121212', 969082725, '121212')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:20:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082725, '5b4bb98e5a536726cdacf7436ccf027f')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:20:01', 969082446, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082446"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082446 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082446 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082446 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:20:01', NULL, 969082446, 'BorrowDirect', 'in_progress', '2015-02-19 23:20:01')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:20:01' WHERE `dispatched_services`.`id` = 2478[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:20:01', 969082446, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082725 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082725)[0m
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082446&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A20%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 77ms (ActiveRecord: 61.8ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65bb4bec010317cd381a7725a5ead327' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:16', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:16', 'format', 'journal', 969082726, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:16', 'isbn', 1, '121212', 969082726, '121212')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082726, '65bb4bec010317cd381a7725a5ead327')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:16', 969082447, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082447"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082447 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082447 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082447 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:16', NULL, 969082447, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:16')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:16' WHERE `dispatched_services`.`id` = 2479[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:16', 969082447, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082726 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082726)[0m
Redirected to http://example.org
Completed 302 Found in 129ms (ActiveRecord: 64.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '569c52cf662098ea1620354b246e49fb' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:16', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:16', 'format', 'journal', 969082727, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:16', 'isbn', 1, '121212', 969082727, '121212')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082727, '569c52cf662098ea1620354b246e49fb')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:16', 969082448, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082448"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082448 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082448 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082448 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:16', NULL, 969082448, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:16')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:16' WHERE `dispatched_services`.`id` = 2480[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:16', 969082448, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082727 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082727)[0m
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082448&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A16-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 70ms (ActiveRecord: 59.5ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (0.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082448 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e8f0b6e1b86a6429f1622cb58b2f69e' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-19 23:21:25', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'format', 'journal', 969082728, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'auinit', 1, 'rd', 969082728, 'RD')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'aulast', 1, 'kaplan', 969082728, 'Kaplan')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'atitle', 1, 'the coming anarchy', 969082728, 'The coming anarchy')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'title', 1, 'the atlantic monthly', 969082728, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'volume', 1, '273', 969082728, '273')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'issue', 1, '2', 969082728, '2')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'date', 1, '1994', 969082728, '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'spage', 1, '44', 969082728, '44')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:25', 'issn', 1, '1072-7825', 969082728, '1072-7825')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082728, 'info:sid/google', '2e8f0b6e1b86a6429f1622cb58b2f69e')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082449 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082449, 'test_bd', 'successful', '2015-02-19 23:21:26')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2481
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082449
[1m[36mServiceResponse Exists (2.4ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082449 LIMIT 1[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '699fb29d02eb9fa29e80c66b8e307f22' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:26', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082729, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082729, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'aulast', 1, 'grimes', 969082729, 'Grimes')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082729, '699fb29d02eb9fa29e80c66b8e307f22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082450, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082450 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e32ee84367ce9ea10518f73a27653442' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-19 23:21:26', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'book', 969082730, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'auinit', 1, 'eh', 969082730, 'EH')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'aulast', 1, 'lenneberg', 969082730, 'Lenneberg')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'title', 1, 'biological foundations of language', 969082730, 'Biological foundations of language')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'genre', 1, 'book', 969082730, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'date', 1, '1967', 969082730, '1967')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082730, 'info:sid/google', 'e32ee84367ce9ea10518f73a27653442')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082451 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082451, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082451 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082451, 'test_bd', 'successful', '2015-02-19 23:21:26')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2482
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082451
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80c9a187b31db96f5011da49ad0527be' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:26', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082731, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'isbn', 1, '9789810743734', 969082731, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082731, '80c9a187b31db96f5011da49ad0527be')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082452 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082452, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:26', 'Choose your delivery location', 969082452, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082452 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082452, 'test_bd', 'successful', '2015-02-19 23:21:26')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2483
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082452
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15e85d06b6f86fba97f3898d9149cff1' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:26', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082732, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'isbn', 1, '0109836413', 969082732, '0109836413')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082732, '15e85d06b6f86fba97f3898d9149cff1')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082453 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082453, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:26', 'This item is not currently available from BorrowDirect', 969082453, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082453 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082453, 'test_bd', 'successful', '2015-02-19 23:21:26')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2484
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082453
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '47b3a1bcd7416e7afe2ce54fec773717' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:26', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082733, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'isbn', 1, '000000000', 969082733, '000000000')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-19 23:21:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082733, '47b3a1bcd7416e7afe2ce54fec773717')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082454 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082454, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:26', 'This item is not currently available from BorrowDirect', 969082454, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082454 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:26', NULL, 969082454, 'test_bd', 'successful', '2015-02-19 23:21:26')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:26' WHERE `dispatched_services`.`id` = 2485
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082454
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e0b1fc2831315bd7d18be1ee05555720' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:26', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'format', 'journal', 969082734, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:26', 'isbn', 1, '9789810743734', 969082734, '9789810743734')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082734, 'e0b1fc2831315bd7d18be1ee05555720')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082455 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082455, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082455 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082455, 'test_bd', 'failed_temporary', '2015-02-19 23:21:27')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2486[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082455[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e93b0c8126dd78245115fb0b3675d4c7' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:27', 'title')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082735, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'title', 1, 'title', 969082735, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'author', 1, 'au', 969082735, 'au')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082735, 'e93b0c8126dd78245115fb0b3675d4c7')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:27', 969082456, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082456 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082456, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082456 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082456, 'test_bd', 'successful', '2015-02-19 23:21:27')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2487
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082456
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a69176c45b83f8058c58ae1c1b588ee' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:27', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082736, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'title', 1, 'title', 969082736, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'author', 1, 'au', 969082736, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082736, '1a69176c45b83f8058c58ae1c1b588ee')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:27', 969082457, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082457 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082457, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082457 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082457, 'test_bd', 'successful', '2015-02-19 23:21:27')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2488[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082457[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed49e5d7b6a8a1afe3c83e4632536843' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:27', 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082737, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'title', 1, 'title', 969082737, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'author', 1, 'au', 969082737, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082737, 'ed49e5d7b6a8a1afe3c83e4632536843')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:27', 969082458, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (5.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082458 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082458 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082458, 'test_bd', 'successful', '2015-02-19 23:21:27')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2489[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082458[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd827a399322d441c0e0aa9e412fb395' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:27', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082738, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'title', 1, 'title', 969082738, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'author', 1, 'au', 969082738, 'au')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082738, 'cd827a399322d441c0e0aa9e412fb395')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:27', 969082459, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082459, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082459 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082459, 'test_bd', 'successful', '2015-02-19 23:21:27')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2490[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082459[0m
[1m[35mServiceResponse Load (4.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082459 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd7997b71681bd0618407700b3418dc3b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:27', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082739, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'isbn', 1, '9789810743734', 969082739, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082739, 'd7997b71681bd0618407700b3418dc3b')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082460 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082460, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082460 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082460, 'test_bd', 'successful', '2015-02-19 23:21:27')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2491[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082460[0m
[1m[35m (0.7ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '58387476806f2996f5bf4342c307022b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:27', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'format', 'journal', 969082740, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:27', 'isbn', 1, '9789810743734', 969082740, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082740, '58387476806f2996f5bf4342c307022b')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082461
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:27', NULL, 969082461, 'test_bd', 'queued', '2015-02-19 23:21:27')
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:27' WHERE `dispatched_services`.`id` = 2492[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082461 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082740)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082740)[0m
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082461) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082461)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082461 AND `dispatched_services`.`id` = 2492 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082461, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2492[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082461 LIMIT 1[0m
[1m[35mDispatchedService Load (7.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082740 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082740)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (5.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082461 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (34.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (36.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082461 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (96.8ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082740[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082461[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 458ms (Views: 139.9ms | ActiveRecord: 118.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-19 18:21:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72e1bb9749ed3110c667890cec6fdbc8' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:28', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'format', 'book', 969082741, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'genre', 1, 'book', 969082741, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'author', 1, 'smith', 969082741, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'title', 1, 'some book', 969082741, 'Some Book')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-19 23:21:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082741, '72e1bb9749ed3110c667890cec6fdbc8')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082462[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:28', NULL, 969082462, 'BorrowDirect', 'queued', '2015-02-19 23:21:28')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2493
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082462 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082741)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082741)
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082462) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082462)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082462 AND `dispatched_services`.`id` = 2493 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082462, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2493
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082462 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082741 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082741)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (5.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082462 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082462 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082741[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082462[0m
[1m[35m (15.2ms)[0m COMMIT
Completed 200 OK in 240ms (Views: 18.7ms | ActiveRecord: 127.9ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-19 18:21:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3f1485b4fdf3b6d119602ba68f0693b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:28', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'format', 'journal', 969082742, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'genre', 1, 'article', 969082742, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'title', 1, 'foo', 969082742, 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'author', 1, 'bar', 969082742, 'bar')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-19 23:21:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082742, 'b3f1485b4fdf3b6d119602ba68f0693b')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082463[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:28', NULL, 969082463, 'BorrowDirect', 'queued', '2015-02-19 23:21:28')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2494
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082463 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082742)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082742)
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082463) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082463)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082463 AND `dispatched_services`.`id` = 2494 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2494[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082463 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082742 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082742)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (5.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082463 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082463 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082742
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082463
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 207ms (Views: 18.1ms | ActiveRecord: 116.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6695ce4d1d2523397b27e3bf294cac0b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-19 23:21:28', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'format', 'book', 969082743, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'genre', 1, 'book', 969082743, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'title', 1, 'foo', 969082743, 'foo')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-19 23:21:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082743, '6695ce4d1d2523397b27e3bf294cac0b')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082464 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:28', NULL, 969082464, 'BorrowDirect', 'failed_fatal', '2015-02-19 23:21:28')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:28' WHERE `dispatched_services`.`id` = 2495[0m
[1m[35m (14.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082464" for 127.0.0.1 at 2015-02-19 18:21:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082464"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082464 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082743 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082743)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082464[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082464[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082464 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082464[0m [["request_id", 969082464]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082743 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082743)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (5.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082464 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082464 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082743
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082464
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 19.1ms | ActiveRecord: 47.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '61aa896d761644c73859e5d27d1587cd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:28', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'format', 'journal', 969082744, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:28', 'isbn', 1, '9789810743734', 969082744, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082744, '61aa896d761644c73859e5d27d1587cd')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082465
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:29', NULL, 969082465, 'BorrowDirect', 'queued', '2015-02-19 23:21:29')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2496[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082744)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744)[0m
[1m[35mServiceResponse Load (5.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082465) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082465)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`id` = 2496 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082465, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (26.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:29', 'Choose your delivery location', 969082465, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2496
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082744 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082465 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082744
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082465
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 269ms (Views: 24.6ms | ActiveRecord: 116.7ms)
Started GET "/borrow_direct/BorrowDirect/969082465?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:21:29 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082465"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082465 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2496
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:29', 969082465, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082744 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082465&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 37.7ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2496[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013520
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082465&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:21:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082465", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:21:29-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082744 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082465
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082465 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 [["request_id", 969082465]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082744 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082744)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082465 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082465 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082744[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082465[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 77ms (Views: 20.6ms | ActiveRecord: 47.5ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-19 18:21:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '271dbcdb61fe59b1390d8b2f4b4da995' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:29', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:29', 'format', 'journal', 969082745, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:29', 'isbn', 1, '0109836413', 969082745, '0109836413')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-19 23:21:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082745, '271dbcdb61fe59b1390d8b2f4b4da995')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082466[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:29', NULL, 969082466, 'BorrowDirect', 'queued', '2015-02-19 23:21:29')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2497
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082466 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082745)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082745)
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082466) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082466)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082466 AND `dispatched_services`.`id` = 2497 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082466, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:29', 'This item is not currently available from BorrowDirect', 969082466, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2497[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082466 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082745 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082745)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082466 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082466 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082745
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082466
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 294ms (Views: 62.5ms | ActiveRecord: 115.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0b70fadbb98101dc13ef559fd9e5075' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:29', '9789810743734')
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:29', 'format', 'journal', 969082746, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:29', 'isbn', 1, '9789810743734', 969082746, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082746, 'a0b70fadbb98101dc13ef559fd9e5075')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082467
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:29', NULL, 969082467, 'BorrowDirect', 'queued', '2015-02-19 23:21:29')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2498[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082746)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746)[0m
[1m[35mServiceResponse Load (5.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082467) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082467)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`id` = 2498 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082467, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:29', 'Choose your delivery location', 969082467, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:29' WHERE `dispatched_services`.`id` = 2498
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082746 LIMIT 1[0m
[1m[35mReferentValue Load (0.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082467 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082746
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082467
[1m[36m (61.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 304ms (Views: 21.5ms | ActiveRecord: 164.3ms)
Started GET "/borrow_direct/BorrowDirect/969082467?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-19 18:21:30 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082467"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082467 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (21.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2498
[1m[36m (34.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:30', 969082467, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082746 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082467&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 88ms (ActiveRecord: 79.5ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2498[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013525
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082467&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:21:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082467", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:21:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082746 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082467
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082467 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 [["request_id", 969082467]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082746 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082746)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082467 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082467 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082746[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082467[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 75ms (Views: 18.4ms | ActiveRecord: 47.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df719249581d48ed883e91aab02b1d39' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:30', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:30', 'format', 'journal', 969082747, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:30', 'isbn', 1, '9789810743734', 969082747, '9789810743734')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082747, 'df719249581d48ed883e91aab02b1d39')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082468[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:30', NULL, 969082468, 'BorrowDirect', 'queued', '2015-02-19 23:21:30')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2499
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082468 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082747)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082747)
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082468) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082468)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082468 AND `dispatched_services`.`id` = 2499 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082468, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:30', 'Choose your delivery location', 969082468, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2499[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082468 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082747 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082747)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082468 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082468 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (42.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082468 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082747[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082468[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 295ms (Views: 65.1ms | ActiveRecord: 115.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-19 18:21:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a06240276eb65356935469c56f5ba605' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:30', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:30', 'format', 'journal', 969082748, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:30', 'isbn', 1, '9789810743734', 969082748, '9789810743734')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-19 23:21:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082748, 'a06240276eb65356935469c56f5ba605')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082469[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:30', NULL, 969082469, 'BorrowDirect', 'queued', '2015-02-19 23:21:30')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2500
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082748)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748)
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082469) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082469)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`id` = 2500 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-19 23:21:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082469, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:30', 'Choose your delivery location', 969082469, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-19 23:21:30' WHERE `dispatched_services`.`id` = 2500[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082748 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082469 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082748[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082469[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 254ms (Views: 22.8ms | ActiveRecord: 117.9ms)
Started GET "/borrow_direct/BorrowDirect/969082469" for 127.0.0.1 at 2015-02-19 18:21:30 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082469"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082469 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:30', 969082469, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082748 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082469&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 19.7ms)
Started GET "/resolve?umlaut.request_id=969082469&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-19 18:21:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082469", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-19T18:21:30-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082748 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082469
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 [["request_id", 969082469]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082748 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082748)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082469 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082469 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082469 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082748
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082469
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 79ms (Views: 22.6ms | ActiveRecord: 46.9ms)
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4db2ef3c778a24135f0c269772b8f958' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082749, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082749, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082749, '4db2ef3c778a24135f0c269772b8f958')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082470"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082470 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082470 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082470
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082470, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082470\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082749 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082749)
Redirected to http://test.host/resolve?umlaut.request_id=969082470&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 25.3ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b70fd48d15b4a5a7e437060cd1c1c875' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082750, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082750, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082750, 'b70fd48d15b4a5a7e437060cd1c1c875')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082471, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082471"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082471 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082471 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013532
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082471, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013532\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082750 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082750)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082471&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 26.2ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c4f209b7cfc8677bf558e054175e8030' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082751, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082751, '121212')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082751, 'c4f209b7cfc8677bf558e054175e8030')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082472, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082472"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082472 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082472 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082472 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:31', NULL, 969082472, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:31')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2501[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082472, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082751 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082751)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082472&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 69ms (ActiveRecord: 59.1ms)
[1m[35mDispatchedService Load (2.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082472
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082472 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082472 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2501
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013535[0m
[1m[35m (14.4ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85fc813676068527bd7fde67eebff04c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082752, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082752, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082752, '85fc813676068527bd7fde67eebff04c')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082473, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082473"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082473 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082473 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082473 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:31', NULL, 969082473, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:31')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2502
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082473, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082752 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082752)
Redirected to http://example.org
Completed 302 Found in 73ms (ActiveRecord: 62.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fdf6f36e6722f880e6c749ddc96ac114' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082753, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082753, '121212')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082753, 'fdf6f36e6722f880e6c749ddc96ac114')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082474, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082474"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082474 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082474 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082474 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-19 23:21:31', NULL, 969082474, 'BorrowDirect', 'in_progress', '2015-02-19 23:21:31')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2503
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082474, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082753 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082753)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082474&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 73ms (ActiveRecord: 59.5ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '19c46f43854e9148bf6f8c018c694883' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082474 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (2.3ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-19 23:21:31', '121212')[0m
[1m[35mSQL (1.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-19 23:21:31' WHERE `dispatched_services`.`id` = 2503
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'format', 'journal', 969082754, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-19 23:21:31', 'isbn', 1, '121212', 969082754, '121212')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013539[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-19 23:21:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082754, '19c46f43854e9148bf6f8c018c694883')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082475"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082475 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082475 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-19 23:21:31', 969082475, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082754 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082754)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082475&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-19T18%3A21%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 25.4ms)
[1m[36mActiveRecord::SchemaMigration Load (15.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35m (0.6ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbae734610e01a46734a4913af0922b8' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 16:01:48', 'biological foundations of language', '1967')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'format', 'book', 969082755, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'auinit', 1, 'eh', 969082755, 'EH')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'aulast', 1, 'lenneberg', 969082755, 'Lenneberg')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'title', 1, 'biological foundations of language', 969082755, 'Biological foundations of language')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'genre', 1, 'book', 969082755, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:48', 'date', 1, '1967', 969082755, '1967')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082755, 'info:sid/google', 'cbae734610e01a46734a4913af0922b8')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (5.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082476 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082476, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082476 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082476, 'test_bd', 'successful', '2015-02-23 16:01:50')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2504
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082476
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0444fdbbb2029290792d3d16df238f87' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 16:01:50', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082756, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'auinit', 1, 'rd', 969082756, 'RD')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'aulast', 1, 'kaplan', 969082756, 'Kaplan')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'atitle', 1, 'the coming anarchy', 969082756, 'The coming anarchy')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'the atlantic monthly', 969082756, 'The Atlantic monthly')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'volume', 1, '273', 969082756, '273')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'issue', 1, '2', 969082756, '2')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'date', 1, '1994', 969082756, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'spage', 1, '44', 969082756, '44')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'issn', 1, '1072-7825', 969082756, '1072-7825')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082756, 'info:sid/google', '0444fdbbb2029290792d3d16df238f87')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082477 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082477, 'test_bd', 'successful', '2015-02-23 16:01:50')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2505[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082477[0m
[1m[35mServiceResponse Exists (2.7ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082477 LIMIT 1
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9faacc13985e48423523c01b7963683e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082757, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082757, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'aulast', 1, 'grimes', 969082757, 'Grimes')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082757, '9faacc13985e48423523c01b7963683e')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082478, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082478 ORDER BY id ASC
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f97ae60155ce7c5ccc951159bfb9f814' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082758, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'title', 969082758, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'author', 1, 'au', 969082758, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082758, 'f97ae60155ce7c5ccc951159bfb9f814')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:50', 969082479, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082479, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082479 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082479, 'test_bd', 'successful', '2015-02-23 16:01:50')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2506
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082479
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082479 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb662f28ef68c2c63af55b3c403ab2b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082759, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'title', 969082759, 'title')
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'author', 1, 'au', 969082759, 'au')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082759, 'bb662f28ef68c2c63af55b3c403ab2b3')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:50', 969082480, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (5.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082480 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082480 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082480, 'test_bd', 'successful', '2015-02-23 16:01:50')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2507[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082480[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e1ad07a8e8a18e7ff28fec3b368842c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082760, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'title', 969082760, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'author', 1, 'au', 969082760, 'au')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082760, '2e1ad07a8e8a18e7ff28fec3b368842c')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:50', 969082481, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082481 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082481, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082481 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082481, 'test_bd', 'successful', '2015-02-23 16:01:50')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (1.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2508
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082481
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2104c796ece33f0e8a3eb02aa9d52a30' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:50', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'format', 'journal', 969082761, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'title', 1, 'title', 969082761, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:50', 'author', 1, 'au', 969082761, 'au')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:01:50', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082761, '2104c796ece33f0e8a3eb02aa9d52a30')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:50', 969082482, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082482 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082482, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082482 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:50', NULL, 969082482, 'test_bd', 'successful', '2015-02-23 16:01:50')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:50' WHERE `dispatched_services`.`id` = 2509[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082482[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 80ms (Views: 79.3ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.4ms | ActiveRecord: 1.1ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd532ca477d12c5f3c2282ccdebcde99' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082762, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082762, '121212')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082762, 'dd532ca477d12c5f3c2282ccdebcde99')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082483"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082483 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082483 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082483
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082483, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082483\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082762 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082762)
Redirected to http://test.host/resolve?umlaut.request_id=969082483&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 47ms (ActiveRecord: 25.9ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd911b62e5c8bd79ac46dd3da41b42afc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082763, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082763, '121212')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082763, 'd911b62e5c8bd79ac46dd3da41b42afc')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082484, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082484"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082484 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082484 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013551
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082484, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013551\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082763 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082763)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082484&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 35ms (ActiveRecord: 26.6ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9244e5778530e04e747f5dbbf55efd2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082764, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082764, '121212')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082764, 'e9244e5778530e04e747f5dbbf55efd2')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082485, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082485"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082485 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082485 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082485 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:51', NULL, 969082485, 'BorrowDirect', 'in_progress', '2015-02-23 16:01:51')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2510[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082485, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082764 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082764)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082485&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 71ms (ActiveRecord: 58.0ms)
[1m[35mDispatchedService Load (4.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082485
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082485 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082485 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2510
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013554[0m
[1m[35m (14.5ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '25e995fce21206201177d370cc9e00d0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (5.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212')[0m
[1m[35mSQL (7.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082765, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082765, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082765, '25e995fce21206201177d370cc9e00d0')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082486, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (66.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082486"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082486 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082486 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082486 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:51', NULL, 969082486, 'BorrowDirect', 'in_progress', '2015-02-23 16:01:51')[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2511
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082486, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082765 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082765)
Redirected to http://example.org
Completed 302 Found in 122ms (ActiveRecord: 67.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62d868c2816cf75e82f6fd71270665fe' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082766, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082766, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082766, '62d868c2816cf75e82f6fd71270665fe')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082487, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (39.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082487"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082487 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082487 ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082487 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:51', NULL, 969082487, 'BorrowDirect', 'in_progress', '2015-02-23 16:01:51')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2512
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082487, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082766 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082766)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082487&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 70ms (ActiveRecord: 58.2ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7cd6cbd8fc96d6fb63d6e20e94754b00' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:51', '121212')[0m
[1m[35mSQL (5.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'format', 'journal', 969082767, 'journal')
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:51', 'isbn', 1, '121212', 969082767, '121212')[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082487 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:01:51' WHERE `dispatched_services`.`id` = 2512
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:01:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082767, '7cd6cbd8fc96d6fb63d6e20e94754b00')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013558
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082488"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082488 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082488 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:51', 969082488, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082767 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082767)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082488&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 36ms (ActiveRecord: 26.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0c3e1a784a3186dde9aec91aa7f9d9c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:52', '9789810743734')
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'format', 'journal', 969082768, 'journal')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'isbn', 1, '9789810743734', 969082768, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082768, 'a0c3e1a784a3186dde9aec91aa7f9d9c')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082489
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:52', NULL, 969082489, 'test_bd', 'queued', '2015-02-23 16:01:52')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:52' WHERE `dispatched_services`.`id` = 2513[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082489 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082768)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082768)[0m
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082489) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082489)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082489 AND `dispatched_services`.`id` = 2513 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082489, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 16:01:52' WHERE `dispatched_services`.`id` = 2513[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082489 LIMIT 1[0m
[1m[35mDispatchedService Load (2.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082768 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082768)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.0ms)
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082489 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (24.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (37.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082489 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.8ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082768[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (20.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.0ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082489[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 723ms (Views: 348.7ms | ActiveRecord: 133.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 11:01:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '396e2e5bddcebb625e71b310add1e7e1' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:52', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'format', 'book', 969082769, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'genre', 1, 'book', 969082769, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'author', 1, 'smith', 969082769, 'Smith')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:52', 'title', 1, 'some book', 969082769, 'Some Book')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 16:01:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082769, '396e2e5bddcebb625e71b310add1e7e1')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082490[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (35.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:52', NULL, 969082490, 'BorrowDirect', 'queued', '2015-02-23 16:01:52')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:52' WHERE `dispatched_services`.`id` = 2514
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082490 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082769)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082769)
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082490) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082490)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082490 AND `dispatched_services`.`id` = 2514 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082490, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (3.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2514
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082490 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.2ms)
[1m[35mDispatchedService Load (2.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082769 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082769)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082490 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082490 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082769[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082490[0m
[1m[35m (15.3ms)[0m COMMIT
Completed 200 OK in 281ms (Views: 25.9ms | ActiveRecord: 154.5ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 11:01:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '144b2bc3face2714cf90274faa0722b6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:53', 'foo')[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'format', 'journal', 969082770, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'genre', 1, 'article', 969082770, 'article')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'title', 1, 'foo', 969082770, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'author', 1, 'bar', 969082770, 'bar')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 16:01:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082770, '144b2bc3face2714cf90274faa0722b6')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082491[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:53', NULL, 969082491, 'BorrowDirect', 'queued', '2015-02-23 16:01:53')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2515
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082491 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082770)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082770)
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082491) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082491)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082491 AND `dispatched_services`.`id` = 2515 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2515[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082491 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491[0m
[1m[35mReferent Load (2.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082770 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082770)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082491 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082491 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082770
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082491
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 221ms (Views: 18.8ms | ActiveRecord: 122.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '560475eae1548e36670361275e9068ed' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:01:53', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'format', 'book', 969082771, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'genre', 1, 'book', 969082771, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'title', 1, 'foo', 969082771, 'foo')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 16:01:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082771, '560475eae1548e36670361275e9068ed')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082492 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:53', NULL, 969082492, 'BorrowDirect', 'failed_fatal', '2015-02-23 16:01:53')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2516[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082492" for 127.0.0.1 at 2015-02-23 11:01:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082492"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082492 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082771 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082771)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082492[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082492[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082492 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082492[0m [["request_id", 969082492]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082771 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082771)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (5.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082492 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082492 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082771
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082492
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 76ms (Views: 20.4ms | ActiveRecord: 47.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8f192bf4f75be6f857d9aa231840e99' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:53', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'format', 'journal', 969082772, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:53', 'isbn', 1, '9789810743734', 969082772, '9789810743734')
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082772, 'e8f192bf4f75be6f857d9aa231840e99')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082493
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:53', NULL, 969082493, 'BorrowDirect', 'queued', '2015-02-23 16:01:53')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2517[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082772)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772)[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082493) ORDER BY id ASC
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082493)[0m
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`id` = 2517 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082493, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:53', 'Choose your delivery location', 969082493, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2517
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082772 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.3ms)
[1m[36mServiceResponse Load (5.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082493 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082772
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082493
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 276ms (Views: 31.9ms | ActiveRecord: 121.3ms)
Started GET "/borrow_direct/BorrowDirect/969082493?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:01:53 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082493"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082493 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2517
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:53', 969082493, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082772 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082493&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 52ms (ActiveRecord: 37.4ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:01:53' WHERE `dispatched_services`.`id` = 2517[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013564
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082493&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:01:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082493", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:01:53-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082772 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082493
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082493 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 [["request_id", 969082493]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082772 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082772)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082493 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082493 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082772[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082493[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 77ms (Views: 21.1ms | ActiveRecord: 46.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 11:01:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb2a8ce68fcb0667442c763039832c3a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:54', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'format', 'journal', 969082773, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'isbn', 1, '0109836413', 969082773, '0109836413')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:01:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082773, 'eb2a8ce68fcb0667442c763039832c3a')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082494[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:54', NULL, 969082494, 'BorrowDirect', 'queued', '2015-02-23 16:01:54')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2518
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082494 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082773)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082773)
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082494) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082494)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082494 AND `dispatched_services`.`id` = 2518 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082494, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:54', 'This item is not currently available from BorrowDirect', 969082494, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2518[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082494 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082773 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082773)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082494 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082494 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082773
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082494
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 258ms (Views: 19.5ms | ActiveRecord: 112.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e42aa7785a3b896530c826b2ff1cc2b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:54', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'format', 'journal', 969082774, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'isbn', 1, '9789810743734', 969082774, '9789810743734')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082774, 'e42aa7785a3b896530c826b2ff1cc2b3')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082495
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:54', NULL, 969082495, 'BorrowDirect', 'queued', '2015-02-23 16:01:54')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2519[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082774)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774)[0m
[1m[35mServiceResponse Load (5.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082495) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082495)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`id` = 2519 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082495, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:54', 'Choose your delivery location', 969082495, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2519
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082774 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082495 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082774
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082495
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 257ms (Views: 22.6ms | ActiveRecord: 117.0ms)
Started GET "/borrow_direct/BorrowDirect/969082495?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:01:54 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082495"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082495 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2519
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:54', 969082495, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082774 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082495&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A54-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 55ms (ActiveRecord: 38.8ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2519[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013569
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082495&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A54-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:01:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082495", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:01:54-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082774 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082495
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082495 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 [["request_id", 969082495]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082774 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082774)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082495 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082495 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082774[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082495[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 19.1ms | ActiveRecord: 45.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2d8512bd80ece6c10732271c8dcd35f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:54', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'format', 'journal', 969082775, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:54', 'isbn', 1, '9789810743734', 969082775, '9789810743734')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082775, 'b2d8512bd80ece6c10732271c8dcd35f')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082496[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:54', NULL, 969082496, 'BorrowDirect', 'queued', '2015-02-23 16:01:54')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:54' WHERE `dispatched_services`.`id` = 2520
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082496 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082775)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082775)
[1m[36mServiceResponse Load (5.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082496) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082496)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082496 AND `dispatched_services`.`id` = 2520 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082496, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:54', 'Choose your delivery location', 969082496, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2520[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082496 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082775 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082775)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082496 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082496 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082496 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082775[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082496[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 266ms (Views: 21.8ms | ActiveRecord: 119.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:01:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2131fcd99a5e07de4f1546cc0a7228f5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082776, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '9789810743734', 969082776, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082776, '2131fcd99a5e07de4f1546cc0a7228f5')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082497[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:55', NULL, 969082497, 'BorrowDirect', 'queued', '2015-02-23 16:01:55')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2521
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082776)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776)
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082497) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082497)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`id` = 2521 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082497, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 'Choose your delivery location', 969082497, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2521[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082776 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082497 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082776[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082497[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 275ms (Views: 21.9ms | ActiveRecord: 116.3ms)
Started GET "/borrow_direct/BorrowDirect/969082497" for 127.0.0.1 at 2015-02-23 11:01:55 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082497"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082497 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 969082497, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082776 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082497&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.2ms)
Started GET "/resolve?umlaut.request_id=969082497&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A01%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:01:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082497", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:01:55-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082776 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082497
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 [["request_id", 969082497]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082776 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082776)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082497 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082497 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082497 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082776
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082497
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 78ms (Views: 21.9ms | ActiveRecord: 46.4ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c47fa5bc6eb14ee22c7eac11cf0ca18f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082777, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '9789810743734', 969082777, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082777, 'c47fa5bc6eb14ee22c7eac11cf0ca18f')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (5.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082498 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082498, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082498 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:55', NULL, 969082498, 'test_bd', 'successful', '2015-02-23 16:01:55')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2522
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082498
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6647db5b36342ac84e1e61de721e154a' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '000000000')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082778, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '000000000', 969082778, '000000000')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 16:01:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082778, '6647db5b36342ac84e1e61de721e154a')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082499 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082499, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 'This item is not currently available from BorrowDirect', 969082499, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082499 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:55', NULL, 969082499, 'test_bd', 'successful', '2015-02-23 16:01:55')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2523
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082499
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5cd630b17c7c7114ee09ac718711834' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082779, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '0109836413', 969082779, '0109836413')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:01:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082779, 'd5cd630b17c7c7114ee09ac718711834')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082500 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082500, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 'This item is not currently available from BorrowDirect', 969082500, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082500 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:55', NULL, 969082500, 'test_bd', 'successful', '2015-02-23 16:01:55')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2524
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082500
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a10c43d5c8075f62f467f1fce740b12e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (3.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:55', '9789810743734')[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'format', 'journal', 969082780, 'journal')
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"3-50LSQVk13Doe0Vlhpma_q24no","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/creates_a_request_form_for_a_requestable_item.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:55', 'isbn', 1, '9789810743734', 969082780, '9789810743734')[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082486 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (8.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"3-50LSQVk13Doe0Vlhpma_q24no\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/creates_a_request_form_for_a_requestable_item.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n * The cassette contains 1 HTTP interaction\n that has not been\\n played back. If your request is non-deterministic, you may\n need to\\n change your :match_requests_on cassette option to be more lenient\\n\n \\ or use a custom request matcher to allow it to match [5].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:01:55' WHERE `dispatched_services`.`id` = 2511
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:55', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082780, 'a10c43d5c8075f62f467f1fce740b12e')[0m
[1m[35m (16.0ms)[0m COMMIT
ServiceResponses skipped for unknown service_ids: BorrowDirect
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:55', 969082486, '---\n:status: error\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082501 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082501, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:01:56', 'Choose your delivery location', 969082501, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082501 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:56', NULL, 969082501, 'test_bd', 'successful', '2015-02-23 16:01:56')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:01:56' WHERE `dispatched_services`.`id` = 2525[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082501[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a4ffea30362e0e749c6ee28de122fcb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:01:56', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:56', 'format', 'journal', 969082781, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:01:56', 'isbn', 1, '9789810743734', 969082781, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:01:56', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082781, '4a4ffea30362e0e749c6ee28de122fcb')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mServiceResponse Load (5.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082502 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:01:56', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082502, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082502 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:01:56', NULL, 969082502, 'test_bd', 'failed_temporary', '2015-02-23 16:01:56')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 16:01:56' WHERE `dispatched_services`.`id` = 2526
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082502
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 62ms (Views: 22.3ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 70ms (Views: 0.4ms | ActiveRecord: 6.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f65a458c8a39bea5b01621a3276fce2b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:42', '121212')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'format', 'journal', 969082782, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'isbn', 1, '121212', 969082782, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082782, 'f65a458c8a39bea5b01621a3276fce2b')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082503"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082503 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082503 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082503
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082503, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082503\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082782 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082782)
Redirected to http://test.host/resolve?umlaut.request_id=969082503&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 59ms (ActiveRecord: 31.5ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e5101f17b6db5a7e3f3e3f213413e18' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:42', '121212')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'format', 'journal', 969082783, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'isbn', 1, '121212', 969082783, '121212')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082783, '9e5101f17b6db5a7e3f3e3f213413e18')
[1m[36m (21.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082504, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082504"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082504 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082504 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013585
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082504, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013585\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082783 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082783)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082504&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 24.9ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3facb76409132e0e021319c3ea82f910' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:42', '121212')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'format', 'journal', 969082784, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'isbn', 1, '121212', 969082784, '121212')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082784, '3facb76409132e0e021319c3ea82f910')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082505, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082505"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082505 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082505 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082505 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:42', NULL, 969082505, 'BorrowDirect', 'in_progress', '2015-02-23 16:43:42')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:42' WHERE `dispatched_services`.`id` = 2527[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:42', 969082505, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082784 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082784)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082505&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 118ms (ActiveRecord: 65.2ms)
[1m[35mDispatchedService Load (6.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082505
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mServiceResponse Load (5.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082505 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082505 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:43:42' WHERE `dispatched_services`.`id` = 2527
[1m[36m (22.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013588[0m
[1m[35m (14.7ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66752c081e33f967efb5af2afcac7d8f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:42', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'format', 'journal', 969082785, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:42', 'isbn', 1, '121212', 969082785, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082785, '66752c081e33f967efb5af2afcac7d8f')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082506, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082506"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082506 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082506 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082506 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082506, 'BorrowDirect', 'in_progress', '2015-02-23 16:43:43')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2528
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082506, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082785 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082785)
Redirected to http://example.org
Completed 302 Found in 80ms (ActiveRecord: 66.2ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '313e5a67f7e7edd0c939f83746491bfa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:43', '121212')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082786, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'isbn', 1, '121212', 969082786, '121212')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082786, '313e5a67f7e7edd0c939f83746491bfa')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082507, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082507"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082507 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082507 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082507 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082507, 'BorrowDirect', 'in_progress', '2015-02-23 16:43:43')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2529
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082507, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082786 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082786)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082507&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 82ms (ActiveRecord: 67.5ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082507 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mRequest Load (3.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf5b537c26dd7856b427dd835e2b6fd2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (3.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2529[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:43', '121212')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082787, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'isbn', 1, '121212', 969082787, '121212')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013592[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082787, 'bf5b537c26dd7856b427dd835e2b6fd2')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082508"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082508 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082508 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082508, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082787 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082787)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082508&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 25.3ms)
[1m[35m (0.7ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.6ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39b8830b16038cdcab8a0ce19603d60b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:43', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082788, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'isbn', 1, '9789810743734', 969082788, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082788, '39b8830b16038cdcab8a0ce19603d60b')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (5.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082509 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082509, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082509 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082509, 'test_bd', 'successful', '2015-02-23 16:43:43')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2530
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082509
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '40a56619253ae365d631cad1d02ee18a' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:43', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082789, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082789, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'aulast', 1, 'grimes', 969082789, 'Grimes')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082789, '40a56619253ae365d631cad1d02ee18a')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082510, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082510 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5dfb1a2bd72c8a996ea6e79c6acd0efe' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 16:43:43', 'biological foundations of language', '1967')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'book', 969082790, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'auinit', 1, 'eh', 969082790, 'EH')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'aulast', 1, 'lenneberg', 969082790, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'biological foundations of language', 969082790, 'Biological foundations of language')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'genre', 1, 'book', 969082790, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'date', 1, '1967', 969082790, '1967')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082790, 'info:sid/google', '5dfb1a2bd72c8a996ea6e79c6acd0efe')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082511 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082511, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082511 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082511, 'test_bd', 'successful', '2015-02-23 16:43:43')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2531[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082511[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4cb64e78915464fdf13c754e5186a37' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 16:43:43', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082791, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'auinit', 1, 'rd', 969082791, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'aulast', 1, 'kaplan', 969082791, 'Kaplan')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'atitle', 1, 'the coming anarchy', 969082791, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'the atlantic monthly', 969082791, 'The Atlantic monthly')[0m
[1m[35mSQL (6.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'volume', 1, '273', 969082791, '273')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'issue', 1, '2', 969082791, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'date', 1, '1994', 969082791, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'spage', 1, '44', 969082791, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'issn', 1, '1072-7825', 969082791, '1072-7825')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082791, 'info:sid/google', 'a4cb64e78915464fdf13c754e5186a37')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082512 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082512, 'test_bd', 'successful', '2015-02-23 16:43:43')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2532
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082512
[1m[36mServiceResponse Exists (2.4ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082512 LIMIT 1[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'caad3c04fd61db2276d951da8eb3c211' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:43', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082792, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'title', 969082792, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'author', 1, 'au', 969082792, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082792, 'caad3c04fd61db2276d951da8eb3c211')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082513, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082513, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082513 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:43', NULL, 969082513, 'test_bd', 'successful', '2015-02-23 16:43:43')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:43' WHERE `dispatched_services`.`id` = 2533[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082513[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082513 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '572e0d0142e64dbb21f074e2dec8a63e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:43', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'format', 'journal', 969082793, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'title', 1, 'title', 969082793, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:43', 'author', 1, 'au', 969082793, 'au')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:43:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082793, '572e0d0142e64dbb21f074e2dec8a63e')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:43', 969082514, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082514 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082514, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082514 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:44', NULL, 969082514, 'test_bd', 'successful', '2015-02-23 16:43:44')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2534[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082514[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2f2985d2e44324742ae7c12f75dbef0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:44', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'format', 'journal', 969082794, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'title', 1, 'title', 969082794, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'author', 1, 'au', 969082794, 'au')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:43:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082794, 'b2f2985d2e44324742ae7c12f75dbef0')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:44', 969082515, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082515 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082515, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082515 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:44', NULL, 969082515, 'test_bd', 'successful', '2015-02-23 16:43:44')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2535
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082515
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd4667abc2b0e8ab892c95f3e2a34d6cf' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:44', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'format', 'journal', 969082795, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'title', 1, 'title', 969082795, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'author', 1, 'au', 969082795, 'au')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:43:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082795, 'd4667abc2b0e8ab892c95f3e2a34d6cf')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:44', 969082516, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082516 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082516 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:44', NULL, 969082516, 'test_bd', 'successful', '2015-02-23 16:43:44')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2536
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082516
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dac09e2005a6737bd926fd01ecca5641' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:44', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'format', 'journal', 969082796, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:44', 'isbn', 1, '9789810743734', 969082796, '9789810743734')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082796, 'dac09e2005a6737bd926fd01ecca5641')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082517[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:44', NULL, 969082517, 'test_bd', 'queued', '2015-02-23 16:43:44')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2537
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082517 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082796)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082796)
[1m[36mServiceResponse Load (5.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082517) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082517)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082517 AND `dispatched_services`.`id` = 2537 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082517, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 16:43:44' WHERE `dispatched_services`.`id` = 2537
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082517 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082796 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082796)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.1ms)
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082517 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082517 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.8ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082796
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (14.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082517
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 512ms (Views: 198.1ms | ActiveRecord: 121.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 11:43:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99de3b808a517f1ab49e619932c22171' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:45', 'some book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'format', 'book', 969082797, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'genre', 1, 'book', 969082797, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'author', 1, 'smith', 969082797, 'Smith')[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'title', 1, 'some book', 969082797, 'Some Book')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 16:43:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082797, '99de3b808a517f1ab49e619932c22171')[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082518
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:45', NULL, 969082518, 'BorrowDirect', 'queued', '2015-02-23 16:43:45')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (3.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2538[0m
[1m[35m (24.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082518 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082797)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082797)[0m
[1m[35mServiceResponse Load (5.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082518) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082518)[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082518 AND `dispatched_services`.`id` = 2538 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082518, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2538[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (2.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082518 LIMIT 1[0m
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518
[1m[36mDispatchedService Load (3.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (5.8ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082797 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082797)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (21.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (5.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082518 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082518 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082797
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082518
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 360ms (Views: 37.9ms | ActiveRecord: 151.5ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 11:43:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99e7bef242c7fb91ee992907a8ba724d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:45', 'foo')
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'format', 'journal', 969082798, 'journal')[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'genre', 1, 'article', 969082798, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'title', 1, 'foo', 969082798, 'foo')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'author', 1, 'bar', 969082798, 'bar')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 16:43:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082798, '99e7bef242c7fb91ee992907a8ba724d')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082519
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:45', NULL, 969082519, 'BorrowDirect', 'queued', '2015-02-23 16:43:45')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2539[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082519 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082798)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082798)[0m
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082519) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082519)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082519 AND `dispatched_services`.`id` = 2539 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2539
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082519 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519
[1m[36mReferent Load (1.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082798 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082798)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (16.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082519 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082519 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082798[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (5.3ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082519[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 235ms (Views: 29.3ms | ActiveRecord: 124.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1bedc85890cf5a074cf3acc4b333592b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:43:45', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'format', 'book', 969082799, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'genre', 1, 'book', 969082799, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'title', 1, 'foo', 969082799, 'foo')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (2.1ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 16:43:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082799, '1bedc85890cf5a074cf3acc4b333592b')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082520 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:45', NULL, 969082520, 'BorrowDirect', 'failed_fatal', '2015-02-23 16:43:45')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2540
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082520" for 127.0.0.1 at 2015-02-23 11:43:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082520"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082520 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082799 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082799)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082520
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082520
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082520 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082520 [["request_id", 969082520]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.3ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082799 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082799)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082520 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082520 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082799[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082520[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 95ms (Views: 30.6ms | ActiveRecord: 53.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e865cd0fd34a074023461990e47bfdf7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:45', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'format', 'journal', 969082800, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:45', 'isbn', 1, '9789810743734', 969082800, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082800, 'e865cd0fd34a074023461990e47bfdf7')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082521[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:45', NULL, 969082521, 'BorrowDirect', 'queued', '2015-02-23 16:43:45')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:45' WHERE `dispatched_services`.`id` = 2541
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082800)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800)
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082521) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082521)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`id` = 2541 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082521, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:46', 'Choose your delivery location', 969082521, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2541[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082800 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.9ms)
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082521 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (7.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (13.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (14.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082800[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082521[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 326ms (Views: 40.5ms | ActiveRecord: 115.4ms)
Started GET "/borrow_direct/BorrowDirect/969082521?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:43:46 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082521"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082521 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2541[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:46', 969082521, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082800 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082521&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A46-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 53ms (ActiveRecord: 37.0ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2541
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013608[0m
[1m[35m (64.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082521&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A46-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:43:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082521", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:43:46-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082800 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082521[0m
[1m[35m (31.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082521 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521[0m [["request_id", 969082521]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082800 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082800)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (6.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082521 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082521 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082800
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082521
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 100ms (Views: 24.2ms | ActiveRecord: 65.5ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 11:43:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16461658cf90c46fc447b7d30b26256f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:46', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:46', 'format', 'journal', 969082801, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:46', 'isbn', 1, '0109836413', 969082801, '0109836413')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:43:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082801, '16461658cf90c46fc447b7d30b26256f')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082522
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:46', NULL, 969082522, 'BorrowDirect', 'queued', '2015-02-23 16:43:46')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2542[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082522 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082801)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082801)[0m
[1m[35mServiceResponse Load (5.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082522) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082522)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082522 AND `dispatched_services`.`id` = 2542 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082522, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:46', 'This item is not currently available from BorrowDirect', 969082522, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2542
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082522 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082801 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082801)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082522 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082522 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082801[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082522[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 264ms (Views: 23.2ms | ActiveRecord: 118.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '204ef0367a47ee1f0a1169a8ce70986e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:46', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:46', 'format', 'journal', 969082802, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:46', 'isbn', 1, '9789810743734', 969082802, '9789810743734')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082802, '204ef0367a47ee1f0a1169a8ce70986e')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082523[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:46', NULL, 969082523, 'BorrowDirect', 'queued', '2015-02-23 16:43:46')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2543
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082802)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802)
[1m[36mServiceResponse Load (5.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082523) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082523)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`id` = 2543 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082523, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:46', 'Choose your delivery location', 969082523, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (2.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:46' WHERE `dispatched_services`.`id` = 2543[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082802 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (6.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082523 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082802[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082523[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 314ms (Views: 24.5ms | ActiveRecord: 114.4ms)
Started GET "/borrow_direct/BorrowDirect/969082523?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:43:47 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082523"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082523 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2543[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:47', 969082523, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082802 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082523&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 56ms (ActiveRecord: 37.2ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2543
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013613[0m
[1m[35m (14.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082523&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:43:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082523", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:43:47-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082802 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082523[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082523 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523[0m [["request_id", 969082523]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.2ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082802 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082802)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (10.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082523 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082523 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082802
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082523
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 88ms (Views: 30.2ms | ActiveRecord: 46.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0195a1c0a310b0b07bf7ff88b5a0caa2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:47', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:47', 'format', 'journal', 969082803, 'journal')[0m
[1m[35mSQL (6.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:47', 'isbn', 1, '9789810743734', 969082803, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (2.4ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082803, '0195a1c0a310b0b07bf7ff88b5a0caa2')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082524
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:47', NULL, 969082524, 'BorrowDirect', 'queued', '2015-02-23 16:43:47')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2544[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082524 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082803)
[1m[36mReferentValue Load (2.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082803)[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082524) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082524)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082524 AND `dispatched_services`.`id` = 2544 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082524, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:47', 'Choose your delivery location', 969082524, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2544
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082524 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082803 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082803)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (6.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082524 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082524 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082524 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.9ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082803
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082524
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 286ms (Views: 31.3ms | ActiveRecord: 130.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:43:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a38447a6593bfc90c37b6cb5ff39b12' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:47', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:47', 'format', 'journal', 969082804, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:47', 'isbn', 1, '9789810743734', 969082804, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082804, '2a38447a6593bfc90c37b6cb5ff39b12')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082525
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:47', NULL, 969082525, 'BorrowDirect', 'queued', '2015-02-23 16:43:47')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2545[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082804)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804)[0m
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082525) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082525)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`id` = 2545 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082525, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:47', 'Choose your delivery location', 969082525, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:43:47' WHERE `dispatched_services`.`id` = 2545
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082804 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.0ms)
[1m[36mServiceResponse Load (5.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082525 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082804
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (50.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082525
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 318ms (Views: 76.7ms | ActiveRecord: 117.5ms)
Started GET "/borrow_direct/BorrowDirect/969082525" for 127.0.0.1 at 2015-02-23 11:43:47 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082525"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082525 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:47', 969082525, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082804 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082525&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 19.4ms)
Started GET "/resolve?umlaut.request_id=969082525&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A43%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:43:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082525", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:43:47-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082804 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082525[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525[0m [["request_id", 969082525]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082804 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082804)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (7.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082525 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082525 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082525 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082804[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082525[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 86ms (Views: 26.1ms | ActiveRecord: 49.6ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf799b684f3309bcec39332b92807daa' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:48', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'format', 'journal', 969082805, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'isbn', 1, '000000000', 969082805, '000000000')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 16:43:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082805, 'cf799b684f3309bcec39332b92807daa')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082526 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082526, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:48', 'This item is not currently available from BorrowDirect', 969082526, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082526 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:48', NULL, 969082526, 'test_bd', 'successful', '2015-02-23 16:43:48')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:48' WHERE `dispatched_services`.`id` = 2546
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082526
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df894a108bfe1807a7129613bd148f8f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:48', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'format', 'journal', 969082806, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'isbn', 1, '0109836413', 969082806, '0109836413')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:43:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082806, 'df894a108bfe1807a7129613bd148f8f')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082527 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082527, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:48', 'This item is not currently available from BorrowDirect', 969082527, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082527 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:48', NULL, 969082527, 'test_bd', 'successful', '2015-02-23 16:43:48')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:48' WHERE `dispatched_services`.`id` = 2547
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082527
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd64a19c761dabc8a215705b3fd4473a8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:48', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'format', 'journal', 969082807, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'isbn', 1, '9789810743734', 969082807, '9789810743734')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082807, 'd64a19c761dabc8a215705b3fd4473a8')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082528 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082528, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:43:48', 'Choose your delivery location', 969082528, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082528 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:48', NULL, 969082528, 'test_bd', 'successful', '2015-02-23 16:43:48')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:43:48' WHERE `dispatched_services`.`id` = 2548
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082528
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab62140f94282ce806b71c6a183cbc97' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:43:48', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'format', 'journal', 969082808, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:43:48', 'isbn', 1, '9789810743734', 969082808, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:43:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082808, 'ab62140f94282ce806b71c6a183cbc97')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082529 ORDER BY id ASC
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:43:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082529, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082529 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:43:48', NULL, 969082529, 'test_bd', 'failed_temporary', '2015-02-23 16:43:48')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 16:43:48' WHERE `dispatched_services`.`id` = 2549[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082529[0m
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 55ms (Views: 12.4ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 79ms (Views: 0.5ms | ActiveRecord: 6.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88062e3ea0e72deb08f1194bc9b157e1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082809, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082809, '121212')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082809, '88062e3ea0e72deb08f1194bc9b157e1')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082530"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082530 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082530 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082530
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082530, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082530\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082809 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082809)
Redirected to http://test.host/resolve?umlaut.request_id=969082530&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 60ms (ActiveRecord: 31.7ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08d6faa4029eee7222e8b20f38b374a0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082810, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082810, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082810, '08d6faa4029eee7222e8b20f38b374a0')
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082531, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082531"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082531 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082531 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013627
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082531, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013627\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082810 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082810)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082531&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 25.7ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e939cfaa30c4cd422981bf8f7ceef14b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082811, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082811, '121212')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082811, 'e939cfaa30c4cd422981bf8f7ceef14b')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082532, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082532"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082532 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082532 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082532 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:19', NULL, 969082532, 'BorrowDirect', 'in_progress', '2015-02-23 16:52:19')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:19' WHERE `dispatched_services`.`id` = 2550[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082532, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082811 LIMIT 1
[1m[36mReferentValue Load (2.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082811)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082532&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 153ms (ActiveRecord: 65.8ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082532
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mServiceResponse Load (7.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082532 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082532 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:52:19' WHERE `dispatched_services`.`id` = 2550
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013630[0m
[1m[35m (16.5ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '539425ecf4e4a0a4ea6d954d70324472' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082812, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082812, '121212')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082812, '539425ecf4e4a0a4ea6d954d70324472')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082533, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082533"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082533 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082533 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082533 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:19', NULL, 969082533, 'BorrowDirect', 'in_progress', '2015-02-23 16:52:19')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:19' WHERE `dispatched_services`.`id` = 2551
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082533, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082812 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082812)
Redirected to http://example.org
Completed 302 Found in 91ms (ActiveRecord: 70.4ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '83ae336d310f85106963d2c939aaf2f8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:19', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'format', 'journal', 969082813, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:19', 'isbn', 1, '121212', 969082813, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (13.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082813, '83ae336d310f85106963d2c939aaf2f8')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082534, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082534"}
[1m[36mRequest Load (3.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082534 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082534 ORDER BY id ASC
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082534 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:19', NULL, 969082534, 'BorrowDirect', 'in_progress', '2015-02-23 16:52:19')[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:19' WHERE `dispatched_services`.`id` = 2552
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:19', 969082534, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082813 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082813)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082534&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 93ms (ActiveRecord: 76.0ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082534 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mRequest Load (4.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e8ed487f852fd25b64d40404e4713c25' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (3.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2552[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:20', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082814, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'isbn', 1, '121212', 969082814, '121212')
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013634[0m
[1m[35m (21.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082814, 'e8ed487f852fd25b64d40404e4713c25')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082535"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082535 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082535 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082535, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082814 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082814)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082535&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A20-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 24.9ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5520872bfa289b05e0f915ea1792e764' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:20', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082815, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'title', 1, 'title', 969082815, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'author', 1, 'au', 969082815, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082815, '5520872bfa289b05e0f915ea1792e764')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082536, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082536, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082536 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082536, 'test_bd', 'successful', '2015-02-23 16:52:20')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2553[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082536[0m
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082536 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2478716d67c8eb13e32d63f044f7c19' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:20', 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082816, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'title', 1, 'title', 969082816, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'author', 1, 'au', 969082816, 'au')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082816, 'f2478716d67c8eb13e32d63f044f7c19')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082537, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (42.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082537 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082537, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082537 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082537, 'test_bd', 'successful', '2015-02-23 16:52:20')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2554[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082537[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '447754fd46de2ff97cdf16db1f80c424' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:20', 'title')
[1m[36mSQL (43.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082817, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'title', 1, 'title', 969082817, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'author', 1, 'au', 969082817, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082817, '447754fd46de2ff97cdf16db1f80c424')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082538, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (7.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082538 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082538 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082538, 'test_bd', 'successful', '2015-02-23 16:52:20')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2555[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082538[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dcf687c28b36f18495055155117ddb7e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:20', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082818, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'title', 1, 'title', 969082818, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'author', 1, 'au', 969082818, 'au')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082818, 'dcf687c28b36f18495055155117ddb7e')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 969082539, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082539 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082539, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082539 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082539, 'test_bd', 'successful', '2015-02-23 16:52:20')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2556
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082539
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c2495a0aed1eb77b007281b06df83d9e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:20', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082819, 'journal')
[1m[36mSQL (6.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'isbn', 1, '9789810743734', 969082819, '9789810743734')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082819, 'c2495a0aed1eb77b007281b06df83d9e')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082540 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082540, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 'Choose your delivery location', 969082540, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082540 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:20', NULL, 969082540, 'test_bd', 'successful', '2015-02-23 16:52:20')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:20' WHERE `dispatched_services`.`id` = 2557
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082540
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26a7a00a17004494e13b1bd7dc21d1cf' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:20', '000000000')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'format', 'journal', 969082820, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:20', 'isbn', 1, '000000000', 969082820, '000000000')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 16:52:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082820, '26a7a00a17004494e13b1bd7dc21d1cf')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082541 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082541, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (24.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:20', 'This item is not currently available from BorrowDirect', 969082541, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (28.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082541 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082541, 'test_bd', 'successful', '2015-02-23 16:52:21')[0m
[1m[35m (22.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2558
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082541
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ba7338717e31d404b1cd5837453796f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:21', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082821, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'isbn', 1, '0109836413', 969082821, '0109836413')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (4.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082821, '4ba7338717e31d404b1cd5837453796f')
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"v4fgL4XmC35gP1W83sWfscwQ948","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/adds_a_bd_not_available_for_confirmed_non-requestable_item.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082533 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"v4fgL4XmC35gP1W83sWfscwQ948\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/adds_a_bd_not_available_for_confirmed_non-requestable_item.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n * The cassette contains 1 HTTP interaction\n that has not been\\n played back. If your request is non-deterministic, you may\n need to\\n change your :match_requests_on cassette option to be more lenient\\n\n \\ or use a custom request matcher to allow it to match [5].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2551[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082542 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082542, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (23.5ms)[0m COMMIT
ServiceResponses skipped for unknown service_ids: BorrowDirect
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:21', 969082533, '---\n:status: error\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (25.1ms)[0m [1mCOMMIT[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:21', 'This item is not currently available from BorrowDirect', 969082542, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082542 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082542, 'test_bd', 'successful', '2015-02-23 16:52:21')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2559[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082542[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1ce99da413ab6f682ddab606fbc3ff2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:21', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082822, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'isbn', 1, '9789810743734', 969082822, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082822, 'e1ce99da413ab6f682ddab606fbc3ff2')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082543 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082543, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082543 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (6.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082543, 'test_bd', 'failed_temporary', '2015-02-23 16:52:21')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2560
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082543
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26a5d0df8b89fb38093f7a217b63865a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:21', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082823, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'isbn', 1, '9789810743734', 969082823, '9789810743734')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082823, '26a5d0df8b89fb38093f7a217b63865a')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082544 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082544, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082544 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082544, 'test_bd', 'successful', '2015-02-23 16:52:21')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2561[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082544[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e173339f8d98e7024e8aa1749a91ea30' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 16:52:21', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082824, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'auinit', 1, 'rd', 969082824, 'RD')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'aulast', 1, 'kaplan', 969082824, 'Kaplan')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'atitle', 1, 'the coming anarchy', 969082824, 'The coming anarchy')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'title', 1, 'the atlantic monthly', 969082824, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'volume', 1, '273', 969082824, '273')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'issue', 1, '2', 969082824, '2')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'date', 1, '1994', 969082824, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'spage', 1, '44', 969082824, '44')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'issn', 1, '1072-7825', 969082824, '1072-7825')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (7.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082824, 'info:sid/google', 'e173339f8d98e7024e8aa1749a91ea30')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082545 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082545, 'test_bd', 'successful', '2015-02-23 16:52:21')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2562
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082545
[1m[36mServiceResponse Exists (2.3ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082545 LIMIT 1[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2d8180a6bbe7c6b3a0596a0be6d000a1' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:21', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082825, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082825, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'aulast', 1, 'grimes', 969082825, 'Grimes')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082825, '2d8180a6bbe7c6b3a0596a0be6d000a1')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082546, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082546 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7000151ab616bedb9bcc70b9c067bfa9' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 16:52:21', 'biological foundations of language', '1967')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'book', 969082826, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'auinit', 1, 'eh', 969082826, 'EH')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'aulast', 1, 'lenneberg', 969082826, 'Lenneberg')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'title', 1, 'biological foundations of language', 969082826, 'Biological foundations of language')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'genre', 1, 'book', 969082826, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'date', 1, '1967', 969082826, '1967')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (2.5ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 16:52:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082826, 'info:sid/google', '7000151ab616bedb9bcc70b9c067bfa9')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082547 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082547, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082547 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082547, 'test_bd', 'successful', '2015-02-23 16:52:21')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2563
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082547
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4eccd0b3fffeced6142989ba35a1319' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:21', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'format', 'journal', 969082827, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:21', 'isbn', 1, '9789810743734', 969082827, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082827, 'b4eccd0b3fffeced6142989ba35a1319')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082548[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082548[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:21', NULL, 969082548, 'test_bd', 'queued', '2015-02-23 16:52:21')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:21' WHERE `dispatched_services`.`id` = 2564
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082548 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082827)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082827)
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082548) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082548)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082548 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082548 AND `dispatched_services`.`id` = 2564 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082548, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/available
Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 196ms
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 11:52:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cdec8d8b930f472bcf95713496cf0f87' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:22', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'format', 'book', 969082828, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'genre', 1, 'book', 969082828, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'author', 1, 'smith', 969082828, 'Smith')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'title', 1, 'some book', 969082828, 'Some Book')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 16:52:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082828, 'cdec8d8b930f472bcf95713496cf0f87')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (2.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082549
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:22', NULL, 969082549, 'BorrowDirect', 'queued', '2015-02-23 16:52:22')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2565[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082549 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082828)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082828)[0m
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082549) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082549)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082549 AND `dispatched_services`.`id` = 2565 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082549, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2565[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082549 LIMIT 1[0m
[1m[35mDispatchedService Load (43.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082828 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082828)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082549 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082549 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082828[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (1.0ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082549[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 363ms (Views: 140.3ms | ActiveRecord: 119.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 11:52:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd21b55e9cf4d72ecb92d4d7bdd3ac6b6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:22', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'format', 'journal', 969082829, 'journal')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'genre', 1, 'article', 969082829, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'title', 1, 'foo', 969082829, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'author', 1, 'bar', 969082829, 'bar')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 16:52:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082829, 'd21b55e9cf4d72ecb92d4d7bdd3ac6b6')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082550[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:22', NULL, 969082550, 'BorrowDirect', 'queued', '2015-02-23 16:52:22')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2566
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082550 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082829)[0m
[1m[35mReferentValue Load (3.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082829)
[1m[36mServiceResponse Load (6.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082550) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082550)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082550 AND `dispatched_services`.`id` = 2566 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2566[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082550 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082829 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082829)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (18.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (6.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082550 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082550 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082829
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082550
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 249ms (Views: 32.4ms | ActiveRecord: 128.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6e2e0083cb8f8c6bc8a5c3fc2d76082' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.7ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:52:22', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'format', 'book', 969082830, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'genre', 1, 'book', 969082830, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'title', 1, 'foo', 969082830, 'foo')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 16:52:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082830, 'b6e2e0083cb8f8c6bc8a5c3fc2d76082')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082551 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:22', NULL, 969082551, 'BorrowDirect', 'failed_fatal', '2015-02-23 16:52:22')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2567[0m
[1m[35m (15.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082551" for 127.0.0.1 at 2015-02-23 11:52:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082551"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082551 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082830 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082830)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082551[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082551[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082551 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082551[0m [["request_id", 969082551]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082830 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082830)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082551 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082551 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082830
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082551
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 85ms (Views: 24.0ms | ActiveRecord: 51.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b0a3891424ef0a18b527c7133ac4ed2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:22', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'format', 'journal', 969082831, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:22', 'isbn', 1, '9789810743734', 969082831, '9789810743734')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082831, '8b0a3891424ef0a18b527c7133ac4ed2')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082552
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:22', NULL, 969082552, 'BorrowDirect', 'queued', '2015-02-23 16:52:22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:22' WHERE `dispatched_services`.`id` = 2568[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082831)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831)[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082552) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082552)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`id` = 2568 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082552, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:23', 'Choose your delivery location', 969082552, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2568
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082831 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082552 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.5ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082831
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082552
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 308ms (Views: 29.2ms | ActiveRecord: 115.7ms)
Started GET "/borrow_direct/BorrowDirect/969082552?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:52:23 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082552"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082552 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2568
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:23', 969082552, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082831 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082552&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 49ms (ActiveRecord: 38.4ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2568[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013658
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082552&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:52:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082552", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:52:23-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082831 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082552
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082552 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 [["request_id", 969082552]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082831 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082831)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (6.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082552 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082552 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082831[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (3.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082552[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 85ms (Views: 24.4ms | ActiveRecord: 49.3ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 11:52:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '70106501d344c3876bee5e6aae55e70a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:23', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:23', 'format', 'journal', 969082832, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:23', 'isbn', 1, '0109836413', 969082832, '0109836413')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:52:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082832, '70106501d344c3876bee5e6aae55e70a')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082553[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:23', NULL, 969082553, 'BorrowDirect', 'queued', '2015-02-23 16:52:23')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2569
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082553 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082832)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082832)
[1m[36mServiceResponse Load (5.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082553) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082553)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082553 AND `dispatched_services`.`id` = 2569 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082553, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:23', 'This item is not currently available from BorrowDirect', 969082553, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2569[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082553 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082832 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082832)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (6.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082553 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082553 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082832
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082553
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 266ms (Views: 23.7ms | ActiveRecord: 113.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9cadb42cbad49b7675ce0d7acbe44936' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:23', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:23', 'format', 'journal', 969082833, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:23', 'isbn', 1, '9789810743734', 969082833, '9789810743734')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082833, '9cadb42cbad49b7675ce0d7acbe44936')[0m
[1m[35m (21.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082554
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:23', NULL, 969082554, 'BorrowDirect', 'queued', '2015-02-23 16:52:23')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2570[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082833)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833)[0m
[1m[35mServiceResponse Load (6.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082554) ORDER BY id ASC
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082554)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`id` = 2570 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082554, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:23', 'Choose your delivery location', 969082554, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:23' WHERE `dispatched_services`.`id` = 2570
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082833 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082554 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082833
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082554
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 345ms (Views: 30.2ms | ActiveRecord: 129.4ms)
Started GET "/borrow_direct/BorrowDirect/969082554?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:52:24 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082554"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082554 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2570
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:24', 969082554, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082833 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082554&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 56ms (ActiveRecord: 37.8ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2570[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013663
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082554&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:52:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082554", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:52:24-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082833 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082554
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082554 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 [["request_id", 969082554]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082833 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082833)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082554 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082554 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082833[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082554[0m
[1m[35m (14.1ms)[0m COMMIT
Completed 200 OK in 80ms (Views: 22.8ms | ActiveRecord: 45.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '86c864f9b6f1a1678a1e126d4cf9e540' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:24', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:24', 'format', 'journal', 969082834, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:24', 'isbn', 1, '9789810743734', 969082834, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082834, '86c864f9b6f1a1678a1e126d4cf9e540')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082555[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (2.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:24', NULL, 969082555, 'BorrowDirect', 'queued', '2015-02-23 16:52:24')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2571
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082555 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082834)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082834)
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082555) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082555)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082555 AND `dispatched_services`.`id` = 2571 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082555, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:24', 'Choose your delivery location', 969082555, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2571[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082555 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.2ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082834 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082834)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (6.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082555 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.4ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082555 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (10.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (13.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (14.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082555 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082834[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082555[0m
[1m[35m (20.5ms)[0m COMMIT
Completed 200 OK in 296ms (Views: 44.9ms | ActiveRecord: 125.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:52:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44d90986a86b3cabb28c4a1e348d62c4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:52:24', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:24', 'format', 'journal', 969082835, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:52:24', 'isbn', 1, '9789810743734', 969082835, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:52:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082835, '44d90986a86b3cabb28c4a1e348d62c4')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082556[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:52:24', NULL, 969082556, 'BorrowDirect', 'queued', '2015-02-23 16:52:24')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2572
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082835)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835)
[1m[36mServiceResponse Load (5.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082556) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082556)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`id` = 2572 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:52:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082556, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:24', 'Choose your delivery location', 969082556, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:52:24' WHERE `dispatched_services`.`id` = 2572[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.9ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082835 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.9ms)
[1m[35mServiceResponse Load (6.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082556 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.4ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082835[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082556[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 333ms (Views: 29.7ms | ActiveRecord: 125.1ms)
Started GET "/borrow_direct/BorrowDirect/969082556" for 127.0.0.1 at 2015-02-23 11:52:24 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082556"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082556 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:52:24', 969082556, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082835 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082556&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.7ms)
Started GET "/resolve?umlaut.request_id=969082556&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A52%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:52:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082556", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:52:24-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082835 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082556
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 [["request_id", 969082556]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[36mReferent Load (1.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082835 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082835)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082556 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082556 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082556 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082835
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082556
[1m[36m (25.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 102ms (Views: 29.6ms | ActiveRecord: 60.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bce7fa0dc2b444bac7797b40f4dfcc5e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:25', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'format', 'journal', 969082836, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082836, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'aulast', 1, 'grimes', 969082836, 'Grimes')[0m
[1m[35m (25.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 16:54:25', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082836, 'bce7fa0dc2b444bac7797b40f4dfcc5e')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082557, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082557 ORDER BY id ASC[0m
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bbdd2103e8ee982724342c5ea6208ec' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 16:54:25', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'format', 'journal', 969082837, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'auinit', 1, 'rd', 969082837, 'RD')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'aulast', 1, 'kaplan', 969082837, 'Kaplan')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'atitle', 1, 'the coming anarchy', 969082837, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'title', 1, 'the atlantic monthly', 969082837, 'The Atlantic monthly')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'volume', 1, '273', 969082837, '273')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'issue', 1, '2', 969082837, '2')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'date', 1, '1994', 969082837, '1994')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'spage', 1, '44', 969082837, '44')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:25', 'issn', 1, '1072-7825', 969082837, '1072-7825')
[1m[36m (21.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 16:54:25', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082837, 'info:sid/google', '6bbdd2103e8ee982724342c5ea6208ec')[0m
[1m[35m (24.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082558 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:25', NULL, 969082558, 'test_bd', 'successful', '2015-02-23 16:54:25')[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:25' WHERE `dispatched_services`.`id` = 2573
[1m[36m (25.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082558
[1m[36mServiceResponse Exists (2.8ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082558 LIMIT 1[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '450ac2820d97d32db3d40501c3efd342' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 16:54:25', 'biological foundations of language', '1967')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'format', 'book', 969082838, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'auinit', 1, 'eh', 969082838, 'EH')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'aulast', 1, 'lenneberg', 969082838, 'Lenneberg')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'title', 1, 'biological foundations of language', 969082838, 'Biological foundations of language')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'genre', 1, 'book', 969082838, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'date', 1, '1967', 969082838, '1967')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 16:54:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082838, 'info:sid/google', '450ac2820d97d32db3d40501c3efd342')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082559 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082559, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082559 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:26', NULL, 969082559, 'test_bd', 'successful', '2015-02-23 16:54:26')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2574
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082559
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f530e0c27be0b1300e9306e7dbd66b2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:26', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'format', 'journal', 969082839, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'isbn', 1, '9789810743734', 969082839, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082839, '7f530e0c27be0b1300e9306e7dbd66b2')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082560[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:26', NULL, 969082560, 'test_bd', 'queued', '2015-02-23 16:54:26')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2575
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082560 LIMIT 1
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082839)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082839)
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082560) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082560)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082560 AND `dispatched_services`.`id` = 2575 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082560, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2575
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082560 LIMIT 1
[1m[36mDispatchedService Load (35.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082839 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082839)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082560 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082560 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (95.0ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082839
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082560
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 445ms (Views: 136.2ms | ActiveRecord: 118.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 11:54:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8094a5c0848e5668f7d49bd1c48dbd2d' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:26', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'format', 'book', 969082840, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'genre', 1, 'book', 969082840, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'author', 1, 'smith', 969082840, 'Smith')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'title', 1, 'some book', 969082840, 'Some Book')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 16:54:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082840, '8094a5c0848e5668f7d49bd1c48dbd2d')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082561
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:26', NULL, 969082561, 'BorrowDirect', 'queued', '2015-02-23 16:54:26')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2576[0m
[1m[35m (13.6ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082561 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082840)
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082840)[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082561) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082561)[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082561 AND `dispatched_services`.`id` = 2576 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082561, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:26' WHERE `dispatched_services`.`id` = 2576[0m
[1m[35m (13.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082561 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082840 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082840)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082561 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082561 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082840
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082561
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 240ms (Views: 20.9ms | ActiveRecord: 127.9ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 11:54:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '898154d3a10e9993838c109c108fe9cb' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:26', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'format', 'journal', 969082841, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'genre', 1, 'article', 969082841, 'article')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'title', 1, 'foo', 969082841, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:26', 'author', 1, 'bar', 969082841, 'bar')
[1m[36m (41.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 16:54:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082841, '898154d3a10e9993838c109c108fe9cb')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082562
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:26', NULL, 969082562, 'BorrowDirect', 'queued', '2015-02-23 16:54:26')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2577[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082562 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082841)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082841)[0m
[1m[35mServiceResponse Load (5.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082562) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082562)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082562 AND `dispatched_services`.`id` = 2577 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2577
[1m[36m (52.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082562 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082841 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082841)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (5.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082562 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082562 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082841[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (39.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082562[0m
[1m[35m (53.3ms)[0m COMMIT
Completed 200 OK in 364ms (Views: 53.8ms | ActiveRecord: 192.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '507d969559750649dd090067ed1de8e0' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:27', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'format', 'book', 969082842, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'genre', 1, 'book', 969082842, 'book')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'title', 1, 'foo', 969082842, 'foo')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 16:54:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082842, '507d969559750649dd090067ed1de8e0')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082563 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:27', NULL, 969082563, 'BorrowDirect', 'failed_fatal', '2015-02-23 16:54:27')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2578
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082563" for 127.0.0.1 at 2015-02-23 11:54:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082563"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082563 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082842 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082842)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082563
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082563
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082563 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082563 [["request_id", 969082563]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082842 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082842)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082563 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082563 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082842[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082563[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 17.7ms | ActiveRecord: 48.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd32cf4c97590933d94b459373b6b3679' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:27', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'format', 'journal', 969082843, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'isbn', 1, '9789810743734', 969082843, '9789810743734')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082843, 'd32cf4c97590933d94b459373b6b3679')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082564[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:27', NULL, 969082564, 'BorrowDirect', 'queued', '2015-02-23 16:54:27')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2579
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082843)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843)
[1m[36mServiceResponse Load (6.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082564) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082564)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`id` = 2579 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082564, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:27', 'Choose your delivery location', 969082564, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2579[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082843 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082564 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (2.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082843[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082564[0m
[1m[35m (24.1ms)[0m COMMIT
Completed 200 OK in 275ms (Views: 24.6ms | ActiveRecord: 129.1ms)
Started GET "/borrow_direct/BorrowDirect/969082564?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:54:27 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082564"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082564 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2579[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:27', 969082564, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082843 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082564&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 54ms (ActiveRecord: 38.3ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:54:27' WHERE `dispatched_services`.`id` = 2579
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013675[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082564&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:54:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082564", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:54:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082843 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082564[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082564 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564[0m [["request_id", 969082564]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082843 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082843)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (6.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082564 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (40.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (41.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (2.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082564 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082843
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082564
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 121ms (Views: 61.7ms | ActiveRecord: 49.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 11:54:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b48b2dbacc25194ac41ca4078980335' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:27', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'format', 'journal', 969082844, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:27', 'isbn', 1, '0109836413', 969082844, '0109836413')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:54:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082844, '5b48b2dbacc25194ac41ca4078980335')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082565
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:28', NULL, 969082565, 'BorrowDirect', 'queued', '2015-02-23 16:54:28')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2580[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082565 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082844)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082844)[0m
[1m[35mServiceResponse Load (5.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082565) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082565)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082565 AND `dispatched_services`.`id` = 2580 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082565, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:28', 'This item is not currently available from BorrowDirect', 969082565, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2580
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082565 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082844 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082844)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082565 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082565 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082844[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082565[0m
[1m[35m (15.0ms)[0m COMMIT
Completed 200 OK in 254ms (Views: 20.9ms | ActiveRecord: 117.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76f8ab89f223fc6867a6d2716aec80e8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:28', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:28', 'format', 'journal', 969082845, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:28', 'isbn', 1, '9789810743734', 969082845, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082845, '76f8ab89f223fc6867a6d2716aec80e8')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082566[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:28', NULL, 969082566, 'BorrowDirect', 'queued', '2015-02-23 16:54:28')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2581
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082845)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845)
[1m[36mServiceResponse Load (5.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082566) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082566)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`id` = 2581 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082566, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:28', 'Choose your delivery location', 969082566, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2581[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082845 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (6.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082566 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082845[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082566[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 257ms (Views: 21.3ms | ActiveRecord: 117.6ms)
Started GET "/borrow_direct/BorrowDirect/969082566?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 11:54:28 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082566"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082566 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2581[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:28', 969082566, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082845 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082566&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 53ms (ActiveRecord: 37.9ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2581
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013680[0m
[1m[35m (13.9ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082566&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:54:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082566", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:54:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082845 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082566[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082566 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566[0m [["request_id", 969082566]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.0ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082845 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082845)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (6.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082566 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082566 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082845
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082566
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 122ms (Views: 62.9ms | ActiveRecord: 49.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2362eed299fe3bc055317f2c31b2ee5b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:28', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:28', 'format', 'journal', 969082846, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:28', 'isbn', 1, '9789810743734', 969082846, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:28', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082846, '2362eed299fe3bc055317f2c31b2ee5b')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082567
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:28', NULL, 969082567, 'BorrowDirect', 'queued', '2015-02-23 16:54:28')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2582[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082567 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082846)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082846)[0m
[1m[35mServiceResponse Load (6.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082567) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082567)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082567 AND `dispatched_services`.`id` = 2582 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082567, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:28', 'Choose your delivery location', 969082567, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:28' WHERE `dispatched_services`.`id` = 2582
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082567 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082846 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082846)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082567 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082567 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082567 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082846
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082567
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 267ms (Views: 22.2ms | ActiveRecord: 121.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 11:54:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c04514cd53a91f0cdd802380f6937124' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:29', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082847, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'isbn', 1, '9789810743734', 969082847, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:29', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082847, 'c04514cd53a91f0cdd802380f6937124')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082568
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082568, 'BorrowDirect', 'queued', '2015-02-23 16:54:29')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2583[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082847)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847)[0m
[1m[35mServiceResponse Load (6.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082568) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082568)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`id` = 2583 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082568, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 'Choose your delivery location', 969082568, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2583
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082847 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082568 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082847
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082568
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 260ms (Views: 21.5ms | ActiveRecord: 119.1ms)
Started GET "/borrow_direct/BorrowDirect/969082568" for 127.0.0.1 at 2015-02-23 11:54:29 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082568"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082568 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 969082568, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082847 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082568&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 23.9ms)
Started GET "/resolve?umlaut.request_id=969082568&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 11:54:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082568", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T11:54:29-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082847 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082568[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568[0m [["request_id", 969082568]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082847 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082847)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082568 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082568 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (42.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (42.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082568 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082847[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082568[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 122ms (Views: 65.1ms | ActiveRecord: 47.4ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '67a925faf9f99e60e9adebc4becba3d0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:29', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082848, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'isbn', 1, '9789810743734', 969082848, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082848, '67a925faf9f99e60e9adebc4becba3d0')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082569 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082569, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082569 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082569, 'test_bd', 'successful', '2015-02-23 16:54:29')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2584[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082569[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8fcb3ab8cbe05edb30f2301f839ee6ce' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:29', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082849, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'title', 1, 'title', 969082849, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'author', 1, 'au', 969082849, 'au')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082849, '8fcb3ab8cbe05edb30f2301f839ee6ce')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 969082570, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082570, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082570 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082570, 'test_bd', 'successful', '2015-02-23 16:54:29')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2585[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082570[0m
[1m[35mServiceResponse Load (5.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082570 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24ff06ebff7fe189c6eb397a40609e47' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:29', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082850, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'title', 1, 'title', 969082850, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'author', 1, 'au', 969082850, 'au')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082850, '24ff06ebff7fe189c6eb397a40609e47')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 969082571, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082571 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082571, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082571 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082571, 'test_bd', 'successful', '2015-02-23 16:54:29')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (2.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2586[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082571[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '749e5e8616613bc365ac26c2d2fcddd1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:29', 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082851, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'title', 1, 'title', 969082851, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'author', 1, 'au', 969082851, 'au')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082851, '749e5e8616613bc365ac26c2d2fcddd1')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:29', 969082572, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (6.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082572 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082572, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082572 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:29', NULL, 969082572, 'test_bd', 'successful', '2015-02-23 16:54:29')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:29' WHERE `dispatched_services`.`id` = 2587
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082572
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37dc39cb47fda6cdcfff2e71b340a6fe' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 16:54:29', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'format', 'journal', 969082852, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'title', 1, 'title', 969082852, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:29', 'author', 1, 'au', 969082852, 'au')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 16:54:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082852, '37dc39cb47fda6cdcfff2e71b340a6fe')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082573, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (27.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082573 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082573 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082573, 'test_bd', 'successful', '2015-02-23 16:54:30')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2588
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082573
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dce83fb7b13dba35cd11969e535f1d1f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082853, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '0109836413', 969082853, '0109836413')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082853, 'dce83fb7b13dba35cd11969e535f1d1f')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082574 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082574, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 'This item is not currently available from BorrowDirect', 969082574, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082574 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082574, 'test_bd', 'successful', '2015-02-23 16:54:30')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2589
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082574
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6f07927fdabcdfb375df27f37c11ecb6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082854, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '9789810743734', 969082854, '9789810743734')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082854, '6f07927fdabcdfb375df27f37c11ecb6')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082575 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082575, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 'Choose your delivery location', 969082575, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082575 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082575, 'test_bd', 'successful', '2015-02-23 16:54:30')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2590
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082575
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf643e23277366c473c85c06afdce4b2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082855, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '9789810743734', 969082855, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082855, 'cf643e23277366c473c85c06afdce4b2')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082576 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082576, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082576 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082576, 'test_bd', 'failed_temporary', '2015-02-23 16:54:30')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2591[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082576[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5436fe95f38b4d35eca7625557db69b8' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082856, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '000000000', 969082856, '000000000')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082856, '5436fe95f38b4d35eca7625557db69b8')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36mServiceResponse Load (6.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082577 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 16:54:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082577, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 'This item is not currently available from BorrowDirect', 969082577, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082577 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082577, 'test_bd', 'successful', '2015-02-23 16:54:30')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2592[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082577[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b013b9b560c2f8149b519e8573a0e8a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082857, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '121212', 969082857, '121212')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082857, '2b013b9b560c2f8149b519e8573a0e8a')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082578"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082578 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082578 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082578
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082578, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082578\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082857 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082857)
Redirected to http://test.host/resolve?umlaut.request_id=969082578&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.2ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ee22bea8dd93b822ab319f1ee9ac9b8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082858, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '121212', 969082858, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.9ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082858, '1ee22bea8dd93b822ab319f1ee9ac9b8')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082579, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082579"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082579 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082579 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013702
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082579, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013702\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082858 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082858)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082579&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.6ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e967d86af76c1564b72aa864198a9192' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:30', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'format', 'journal', 969082859, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:30', 'isbn', 1, '121212', 969082859, '121212')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082859, 'e967d86af76c1564b72aa864198a9192')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082580, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082580"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082580 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082580 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082580 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:30', NULL, 969082580, 'BorrowDirect', 'in_progress', '2015-02-23 16:54:30')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2593[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:30', 969082580, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082859 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082859)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082580&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 74ms (ActiveRecord: 60.8ms)
[1m[35mDispatchedService Load (4.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082580
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082580 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:54:30' WHERE `dispatched_services`.`id` = 2593[0m
[1m[35mServiceResponse Load (6.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082580 ORDER BY id ASC
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013705[0m
[1m[35m (14.1ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a04ba68720f5a0fcebf27cbea7dd36de' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:31', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'format', 'journal', 969082860, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'isbn', 1, '121212', 969082860, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082860, 'a04ba68720f5a0fcebf27cbea7dd36de')
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082581, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082581"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082581 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082581 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082581 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:31', NULL, 969082581, 'BorrowDirect', 'in_progress', '2015-02-23 16:54:31')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:31' WHERE `dispatched_services`.`id` = 2594
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082581, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082860 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082860)
Redirected to http://example.org
Completed 302 Found in 81ms (ActiveRecord: 68.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e5e710d54644d9e8ea7ab6f7c65f87b9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:31', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'format', 'journal', 969082861, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'isbn', 1, '121212', 969082861, '121212')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082861, 'e5e710d54644d9e8ea7ab6f7c65f87b9')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082582, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082582"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082582 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082582 ORDER BY id ASC
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082582 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 16:54:31', NULL, 969082582, 'BorrowDirect', 'in_progress', '2015-02-23 16:54:31')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 16:54:31' WHERE `dispatched_services`.`id` = 2595
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082582, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082861 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082861)
UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Redirected to http://test.host/resolve?umlaut.request_id=969082582&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 74ms (ActiveRecord: 60.4ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082582 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mRequest Load (3.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45768974b55fe3964d88dfdc23c01303' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 16:54:31', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'format', 'journal', 969082862, 'journal')
[1m[36mSQL (7.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 16:54:31' WHERE `dispatched_services`.`id` = 2595[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 16:54:31', 'isbn', 1, '121212', 969082862, '121212')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013709[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 16:54:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082862, '45768974b55fe3964d88dfdc23c01303')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082583"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082583 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082583 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 16:54:31', 969082583, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082862 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082862)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082583&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T11%3A54%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.7ms)
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 63ms (Views: 43.1ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 53ms (Views: 0.4ms | ActiveRecord: 6.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '738945daf9ae992e27daa08584fdafbe' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:06', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:06', 'format', 'journal', 969082863, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:06', 'isbn', 1, '121212', 969082863, '121212')[0m
[1m[35m (25.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082863, '738945daf9ae992e27daa08584fdafbe')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082584"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082584 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082584 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082584
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082584, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082584\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082863 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082863)
Redirected to http://test.host/resolve?umlaut.request_id=969082584&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 90ms (ActiveRecord: 32.2ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fbde56fa01ec420b4497acf56f5dfd6e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082864, 'journal')
[1m[36mSQL (8.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082864, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082864, 'fbde56fa01ec420b4497acf56f5dfd6e')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082585, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082585"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082585 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082585 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013712
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082585, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013712\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082864 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082864)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082585&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.9ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6cc8748c04b99be2ae0f7442af6fef8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082865, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082865, '121212')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082865, 'd6cc8748c04b99be2ae0f7442af6fef8')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082586, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082586"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082586 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082586 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082586 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:07', NULL, 969082586, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:07')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2596[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082586, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082865 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082865)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082586&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 106ms (ActiveRecord: 86.0ms)
[1m[35mDispatchedService Load (4.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082586
[1m[36mServiceResponse Load (6.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082586 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082586 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2596
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013715[0m
[1m[35m (14.0ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '92d41908e7d51eb300871248ff25951f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082866, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082866, '121212')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082866, '92d41908e7d51eb300871248ff25951f')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082587, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082587"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082587 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082587 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082587 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:07', NULL, 969082587, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:07')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2597
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082587, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082866 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082866)
Redirected to http://example.org
Completed 302 Found in 112ms (ActiveRecord: 64.4ms)
----------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_for_validation_error
----------------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc3fe03476bdf7d3397dc3d013ef0b2f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082867, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082867, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082867, 'fc3fe03476bdf7d3397dc3d013ef0b2f')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082588, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969082588"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082588 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082588 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082588, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082867 LIMIT 1
[1m[36mReferentValue Load (3.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082867)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082588&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 30.3ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '604ff841e25c642efc9f160c7552aa50' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082868, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082868, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082868, '604ff841e25c642efc9f160c7552aa50')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082589, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082589"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082589 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082589 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082589 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:07', NULL, 969082589, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:07')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2598[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082589, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082868 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082868)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 75ms (Views: 0.3ms | ActiveRecord: 62.2ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85ff6476d2e26b6877d4a29e041c88ca' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082589 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36m (2.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '121212')
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:07' WHERE `dispatched_services`.`id` = 2598[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082869, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '121212', 969082869, '121212')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013721
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082869, '85ff6476d2e26b6877d4a29e041c88ca')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082590"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082590 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082590 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:07', 969082590, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082869 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082869)
Redirected to http://test.host/resolve?umlaut.request_id=969082590&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.8ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc414788c398816e58e4d569a459a34a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:07', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'format', 'journal', 969082870, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:07', 'isbn', 1, '9789810743734', 969082870, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082870, 'bc414788c398816e58e4d569a459a34a')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082591 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082591, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:08', 'Choose your delivery location', 969082591, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082591 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082591, 'test_bd', 'successful', '2015-02-23 18:13:08')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2599
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082591
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f9f06632183d950f30e1c7197a7a495' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:08', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'format', 'journal', 969082871, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'isbn', 1, '000000000', 969082871, '000000000')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:13:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082871, '8f9f06632183d950f30e1c7197a7a495')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082592 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082592, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:08', 'This item is not currently available from BorrowDirect', 969082592, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082592 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082592, 'test_bd', 'successful', '2015-02-23 18:13:08')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2600
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082592
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e81da0113c6438d0040239d5e01318d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:08', '0109836413')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'format', 'journal', 969082872, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'isbn', 1, '0109836413', 969082872, '0109836413')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:13:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082872, '6e81da0113c6438d0040239d5e01318d')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082593 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082593, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:08', 'This item is not currently available from BorrowDirect', 969082593, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082593 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082593, 'test_bd', 'successful', '2015-02-23 18:13:08')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2601
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082593
[1m[36mRequest Load (2.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a57dd98e26e45935581863f3a5860488' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:08', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'format', 'journal', 969082873, 'journal')
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'isbn', 1, '9789810743734', 969082873, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082873, 'a57dd98e26e45935581863f3a5860488')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082594 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082594, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082594 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082594, 'test_bd', 'failed_temporary', '2015-02-23 18:13:08')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2602[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082594[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11dba069c28fbdd52fbd02704daf4a26' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:08', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'format', 'journal', 969082874, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:08', 'isbn', 1, '9789810743734', 969082874, '9789810743734')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082874, '11dba069c28fbdd52fbd02704daf4a26')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082595
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:08', NULL, 969082595, 'test_bd', 'queued', '2015-02-23 18:13:08')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2603[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082595 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082874)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082874)[0m
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082595) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082595)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082595 AND `dispatched_services`.`id` = 2603 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082595, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:13:08' WHERE `dispatched_services`.`id` = 2603[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082595 LIMIT 1[0m
[1m[35mDispatchedService Load (2.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082874 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082874)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (34.2ms)
[1m[36mServiceResponse Load (6.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082595 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082595 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082874[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082595[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 412ms (Views: 158.7ms | ActiveRecord: 116.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:13:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbad9412e48035f79dcea729b6f4dca3' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:09', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'format', 'book', 969082875, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'genre', 1, 'book', 969082875, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'author', 1, 'smith', 969082875, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'title', 1, 'some book', 969082875, 'Some Book')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:13:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082875, 'cbad9412e48035f79dcea729b6f4dca3')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082596[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (6.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:09', NULL, 969082596, 'BorrowDirect', 'queued', '2015-02-23 18:13:09')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2604
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082596 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082875)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082875)
[1m[36mServiceResponse Load (6.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082596) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082596)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082596 AND `dispatched_services`.`id` = 2604 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082596, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2604
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082596 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082875 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082875)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (6.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082596 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082596 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082875[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082596[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 243ms (Views: 19.9ms | ActiveRecord: 126.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:13:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50e373e76d2d0b5924eec376c3d00220' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:09', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'format', 'journal', 969082876, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'genre', 1, 'article', 969082876, 'article')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'title', 1, 'foo', 969082876, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'author', 1, 'bar', 969082876, 'bar')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:13:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082876, '50e373e76d2d0b5924eec376c3d00220')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082597[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:09', NULL, 969082597, 'BorrowDirect', 'queued', '2015-02-23 18:13:09')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2605
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082597 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082876)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082876)
[1m[36mServiceResponse Load (6.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082597) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082597)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082597 AND `dispatched_services`.`id` = 2605 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2605[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082597 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082876 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082876)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (6.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082597 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082597 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082876
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082597
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 214ms (Views: 17.3ms | ActiveRecord: 122.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa22f11cf7e1a0cdfffd2bb042bd49fb' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:09', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'format', 'book', 969082877, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'genre', 1, 'book', 969082877, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'title', 1, 'foo', 969082877, 'foo')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:13:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082877, 'fa22f11cf7e1a0cdfffd2bb042bd49fb')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082598 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:09', NULL, 969082598, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:13:09')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2606[0m
[1m[35m (14.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082598" for 127.0.0.1 at 2015-02-23 13:13:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082598"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082598 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082877 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082877)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082598[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082598[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082598 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082598[0m [["request_id", 969082598]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082877 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082877)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (6.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082598 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082598 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082877
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (42.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082598
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 115ms (Views: 58.2ms | ActiveRecord: 49.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '819236f54d89c0c6f2d3fe3269fbd1e9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:09', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'format', 'journal', 969082878, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:09', 'isbn', 1, '9789810743734', 969082878, '9789810743734')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082878, '819236f54d89c0c6f2d3fe3269fbd1e9')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082599
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:09', NULL, 969082599, 'BorrowDirect', 'queued', '2015-02-23 18:13:09')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2607[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082878)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878)[0m
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082599) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082599)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`id` = 2607 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082599, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:09', 'Choose your delivery location', 969082599, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:09' WHERE `dispatched_services`.`id` = 2607
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082878 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (6.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082599 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082878
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082599
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 259ms (Views: 24.6ms | ActiveRecord: 116.8ms)
Started GET "/borrow_direct/BorrowDirect/969082599?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:13:10 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082599"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082599 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2607
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:10', 969082599, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082878 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082599&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 52ms (ActiveRecord: 38.2ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2607[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013734
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082599&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082599", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082878 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082599
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082599 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 [["request_id", 969082599]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082878 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082878)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (6.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082599 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082599 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082878[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082599[0m
[1m[35m (15.3ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 21.5ms | ActiveRecord: 50.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:13:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b16b854a9a5e0d10fc81a7d19c42d3df' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:10', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'format', 'journal', 969082879, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'isbn', 1, '0109836413', 969082879, '0109836413')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:13:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082879, 'b16b854a9a5e0d10fc81a7d19c42d3df')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082600[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:10', NULL, 969082600, 'BorrowDirect', 'queued', '2015-02-23 18:13:10')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2608
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082600 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082879)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082879)
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082600) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082600)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082600 AND `dispatched_services`.`id` = 2608 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082600, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:10', 'This item is not currently available from BorrowDirect', 969082600, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2608[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082600 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082879 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082879)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (6.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082600 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082600 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082879
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082600
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 255ms (Views: 20.4ms | ActiveRecord: 116.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e95a14a8ea47b9e74f486f6f6153226' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:10', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'format', 'journal', 969082880, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'isbn', 1, '9789810743734', 969082880, '9789810743734')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (7.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082880, '2e95a14a8ea47b9e74f486f6f6153226')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082601
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:10', NULL, 969082601, 'BorrowDirect', 'queued', '2015-02-23 18:13:10')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2609[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082880)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880)[0m
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082601) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082601)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`id` = 2609 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082601, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:10', 'Choose your delivery location', 969082601, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2609
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082880 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082601 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082880
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082601
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 266ms (Views: 21.3ms | ActiveRecord: 128.0ms)
Started GET "/borrow_direct/BorrowDirect/969082601?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:13:10 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082601"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082601 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2609
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:10', 969082601, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082880 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082601&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.2ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:10' WHERE `dispatched_services`.`id` = 2609[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013739
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082601&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082601", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082880 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082601
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082601 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 [["request_id", 969082601]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082880 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082880)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082601 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082601 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082880[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082601[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 19.4ms | ActiveRecord: 47.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd82144a457994725766b4842224646d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:10', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'format', 'journal', 969082881, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:10', 'isbn', 1, '9789810743734', 969082881, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082881, 'cd82144a457994725766b4842224646d')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082602[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:11', NULL, 969082602, 'BorrowDirect', 'queued', '2015-02-23 18:13:11')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2610
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082602 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082881)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082881)
[1m[36mServiceResponse Load (6.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082602) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082602)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082602 AND `dispatched_services`.`id` = 2610 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082602, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 'Choose your delivery location', 969082602, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2610[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082602 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082881 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082881)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (6.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082602 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082602 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082602 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082881[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082602[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 261ms (Views: 21.7ms | ActiveRecord: 119.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d5e5f6690dc1fbd7f0208e8fcfbfa0c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:11', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'format', 'journal', 969082882, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'isbn', 1, '9789810743734', 969082882, '9789810743734')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082882, '4d5e5f6690dc1fbd7f0208e8fcfbfa0c')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082603[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:11', NULL, 969082603, 'BorrowDirect', 'queued', '2015-02-23 18:13:11')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2611
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082882)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882)
[1m[36mServiceResponse Load (6.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082603) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082603)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`id` = 2611 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082603, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 'Choose your delivery location', 969082603, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2611[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082882 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (6.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082603 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082882[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082603[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 263ms (Views: 22.3ms | ActiveRecord: 122.1ms)
Started GET "/borrow_direct/BorrowDirect/969082603" for 127.0.0.1 at 2015-02-23 13:13:11 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082603"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082603 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 969082603, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono%20-%20for%20piano%2C%201991&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082882 LIMIT 1
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082587 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082603&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.4ms)
Started GET "/resolve?umlaut.request_id=969082603&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082603", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36m (4.9ms)[0m [1mBEGIN[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono%20-%20for%20piano%2C%201991&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2597[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082882 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082603[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013717
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 [["request_id", 969082603]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082882 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082882)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082603 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082603 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082603 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082882[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082603[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 83ms (Views: 25.0ms | ActiveRecord: 49.8ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '081d1a7eb913a35b8961c523023c64e4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:11', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'format', 'journal', 969082883, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'isbn', 1, '9789810743734', 969082883, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082883, '081d1a7eb913a35b8961c523023c64e4')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082604 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082604, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082604 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:11', NULL, 969082604, 'test_bd', 'successful', '2015-02-23 18:13:11')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2612[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082604[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6d003494b851a6a0fb7497ae63632d17' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:11', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'format', 'journal', 969082884, 'journal')[0m
[1m[35mSQL (6.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'title', 1, 'title', 969082884, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'author', 1, 'au', 969082884, 'au')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082884, '6d003494b851a6a0fb7497ae63632d17')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 969082605, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (6.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082605 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082605 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:11', NULL, 969082605, 'test_bd', 'successful', '2015-02-23 18:13:11')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:11' WHERE `dispatched_services`.`id` = 2613[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082605[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '613b899c8a740b3d4169e7fdfbbc840a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:11', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'format', 'journal', 969082885, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'title', 1, 'title', 969082885, 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:11', 'author', 1, 'au', 969082885, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082885, '613b899c8a740b3d4169e7fdfbbc840a')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:11', 969082606, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (6.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082606 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082606, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082606 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082606, 'test_bd', 'successful', '2015-02-23 18:13:12')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2614
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082606
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f51694b3c8fc25b403a8e9f2fc951deb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:12', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'journal', 969082886, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'title', 969082886, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'author', 1, 'au', 969082886, 'au')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082886, 'f51694b3c8fc25b403a8e9f2fc951deb')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:12', 969082607, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082607 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082607, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082607 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082607, 'test_bd', 'successful', '2015-02-23 18:13:12')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2615[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082607[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f155b7cf148a01e348ca0b387479d8c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:12', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'journal', 969082887, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'title', 969082887, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'author', 1, 'au', 969082887, 'au')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082887, '0f155b7cf148a01e348ca0b387479d8c')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:12', 969082608, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082608, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082608 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082608, 'test_bd', 'successful', '2015-02-23 18:13:12')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2616[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082608[0m
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082608 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '55d3d8835948a27353c58d831447b87c' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:12', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'journal', 969082888, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082888, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'aulast', 1, 'grimes', 969082888, 'Grimes')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082888, '55d3d8835948a27353c58d831447b87c')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082609, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082609 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f44bafa56376eb960a11e285e8ec88ee' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:13:12', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'book', 969082889, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'auinit', 1, 'eh', 969082889, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'aulast', 1, 'lenneberg', 969082889, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'biological foundations of language', 969082889, 'Biological foundations of language')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'genre', 1, 'book', 969082889, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'date', 1, '1967', 969082889, '1967')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082889, 'info:sid/google', 'f44bafa56376eb960a11e285e8ec88ee')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082610 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082610, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082610 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082610, 'test_bd', 'successful', '2015-02-23 18:13:12')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2617[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082610[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cd529174c859286b7f3ae2678053dcbf' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:13:12', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'format', 'journal', 969082890, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'auinit', 1, 'rd', 969082890, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'aulast', 1, 'kaplan', 969082890, 'Kaplan')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'atitle', 1, 'the coming anarchy', 969082890, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'title', 1, 'the atlantic monthly', 969082890, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'volume', 1, '273', 969082890, '273')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'issue', 1, '2', 969082890, '2')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'date', 1, '1994', 969082890, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'spage', 1, '44', 969082890, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:12', 'issn', 1, '1072-7825', 969082890, '1072-7825')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (7.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:13:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082890, 'info:sid/google', 'cd529174c859286b7f3ae2678053dcbf')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082611 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:12', NULL, 969082611, 'test_bd', 'successful', '2015-02-23 18:13:12')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:12' WHERE `dispatched_services`.`id` = 2618
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082611
[1m[36mServiceResponse Exists (2.5ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082611 LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.6ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17728fe270310f81b385399195e72dbf' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082891, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'title', 969082891, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'author', 1, 'au', 969082891, 'au')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082891, '17728fe270310f81b385399195e72dbf')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:44', 969082612, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082612 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082612, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082612 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082612, 'test_bd', 'successful', '2015-02-23 18:13:44')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2619
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082612
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '182dec44032022887b914ca401830f60' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082892, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'title', 969082892, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'author', 1, 'au', 969082892, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082892, '182dec44032022887b914ca401830f60')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:44', 969082613, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082613 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082613 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082613, 'test_bd', 'successful', '2015-02-23 18:13:44')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2620
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082613
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17251e8668e15a060f4227666dae8507' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082893, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'title', 969082893, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'author', 1, 'au', 969082893, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082893, '17251e8668e15a060f4227666dae8507')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:44', 969082614, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082614 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082614, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082614 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082614, 'test_bd', 'successful', '2015-02-23 18:13:44')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2621[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082614[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '934267c5bbd4d9aabdfeea92233e2fe9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082894, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082894, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'aulast', 1, 'grimes', 969082894, 'Grimes')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082894, '934267c5bbd4d9aabdfeea92233e2fe9')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082615, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (6.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082615 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aa25ff1a2989eb8430a931c0068afe05' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:13:44', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082895, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'auinit', 1, 'rd', 969082895, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'aulast', 1, 'kaplan', 969082895, 'Kaplan')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'atitle', 1, 'the coming anarchy', 969082895, 'The coming anarchy')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'the atlantic monthly', 969082895, 'The Atlantic monthly')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'volume', 1, '273', 969082895, '273')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'issue', 1, '2', 969082895, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'date', 1, '1994', 969082895, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'spage', 1, '44', 969082895, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'issn', 1, '1072-7825', 969082895, '1072-7825')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082895, 'info:sid/google', 'aa25ff1a2989eb8430a931c0068afe05')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082616 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082616, 'test_bd', 'successful', '2015-02-23 18:13:44')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2622
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082616
[1m[36mServiceResponse Exists (2.5ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082616 LIMIT 1[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1839da692d9e1f62ba3b45f303cae987' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:13:44', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'book', 969082896, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'auinit', 1, 'eh', 969082896, 'EH')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'aulast', 1, 'lenneberg', 969082896, 'Lenneberg')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'biological foundations of language', 969082896, 'Biological foundations of language')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'genre', 1, 'book', 969082896, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'date', 1, '1967', 969082896, '1967')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082896, 'info:sid/google', '1839da692d9e1f62ba3b45f303cae987')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082617 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082617, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082617 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082617, 'test_bd', 'successful', '2015-02-23 18:13:44')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2623
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082617
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e894b688af044a63768d0aa672cf48ac' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:44', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'format', 'journal', 969082897, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'title', 1, 'title', 969082897, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:44', 'author', 1, 'au', 969082897, 'au')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:13:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082897, 'e894b688af044a63768d0aa672cf48ac')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:44', 969082618, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082618, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082618 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:44', NULL, 969082618, 'test_bd', 'successful', '2015-02-23 18:13:44')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:44' WHERE `dispatched_services`.`id` = 2624
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082618
[1m[36mServiceResponse Load (7.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082618 ORDER BY id ASC[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 11ms (Views: 11.0ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.1ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cb1b38f71ceea585af4827c0f89522fe' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (5.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212')[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082898, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082898, '121212')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082898, 'cb1b38f71ceea585af4827c0f89522fe')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082619"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082619 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082619 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082619
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082619, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082619\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082898 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082898)
Redirected to http://test.host/resolve?umlaut.request_id=969082619&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 41ms (ActiveRecord: 28.3ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c80d07fb56b6d15a551d3fafb9b19cf' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082899, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082899, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082899, '5c80d07fb56b6d15a551d3fafb9b19cf')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082620, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082620"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082620 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082620 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013765
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082620, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013765\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082899 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082899)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082620&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 67ms (ActiveRecord: 27.9ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c0b5d6c6aa7ed34a99ab17e39e18a8be' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082900, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082900, '121212')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082900, 'c0b5d6c6aa7ed34a99ab17e39e18a8be')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082621, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082621"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082621 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082621 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082621 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:45', NULL, 969082621, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:45')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2625[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082621, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082900 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082900)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082621&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 70ms (ActiveRecord: 60.1ms)
[1m[35mDispatchedService Load (4.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082621
[1m[36mServiceResponse Load (6.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082621 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082621 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2625
[1m[36m (21.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013768[0m
[1m[35m (14.0ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e5af722d39af85e55ec58f177ac8f09a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082901, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082901, '121212')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082901, 'e5af722d39af85e55ec58f177ac8f09a')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082622, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082622"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082622 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082622 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082622 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:45', NULL, 969082622, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:45')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2626
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082622, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082901 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082901)
Redirected to http://example.org
Completed 302 Found in 74ms (ActiveRecord: 64.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6093339ac8905c178ca26d42210b2d7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082902, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082902, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082902, 'e6093339ac8905c178ca26d42210b2d7')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082623, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082623"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082623 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082623 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082623 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:45', NULL, 969082623, 'BorrowDirect', 'in_progress', '2015-02-23 18:13:45')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2627
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082623, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082902 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082902)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 71ms (Views: 0.3ms | ActiveRecord: 60.6ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '118cef6eaf16a1415f7467d62b512e23' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082623 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35m (2.4ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '121212')[0m
[1m[35mSQL (2.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:45' WHERE `dispatched_services`.`id` = 2627
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082903, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '121212', 969082903, '121212')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013772[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082903, '118cef6eaf16a1415f7467d62b512e23')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (15.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082624"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082624 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082624 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:45', 969082624, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082903 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082903)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082624&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.4ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96ba296a889c469bb17a084f679992e3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:45', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'format', 'journal', 969082904, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:45', 'isbn', 1, '9789810743734', 969082904, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:45', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082904, '96ba296a889c469bb17a084f679992e3')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082625 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082625, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082625 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:45', NULL, 969082625, 'test_bd', 'failed_temporary', '2015-02-23 18:13:45')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2628
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082625
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '37b1cb8f45e6be74c8598febb1c04c91' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '000000000')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082905, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '000000000', 969082905, '000000000')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:13:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082905, '37b1cb8f45e6be74c8598febb1c04c91')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082626 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082626, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:46', 'This item is not currently available from BorrowDirect', 969082626, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082626 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082626, 'test_bd', 'successful', '2015-02-23 18:13:46')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2629
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082626
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c32c43508d98faa7685c6a0bc0f92b4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082906, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '0109836413', 969082906, '0109836413')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:13:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082906, '7c32c43508d98faa7685c6a0bc0f92b4')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082627 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082627, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:46', 'This item is not currently available from BorrowDirect', 969082627, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082627 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082627, 'test_bd', 'successful', '2015-02-23 18:13:46')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2630
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082627
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '678b77e2fcf97d8287ed5558ca26af53' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082907, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '9789810743734', 969082907, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082907, '678b77e2fcf97d8287ed5558ca26af53')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082628 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082628, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:46', 'Choose your delivery location', 969082628, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (61.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082628 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082628, 'test_bd', 'successful', '2015-02-23 18:13:46')[0m
[1m[35m (54.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2631
[1m[36m (48.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082628
[1m[36m (1.0ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.9ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c298aa255c92eea034b90ce3634d9456' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082908, 'journal')
[1m[36mSQL (7.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '9789810743734', 969082908, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082908, 'c298aa255c92eea034b90ce3634d9456')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082629 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082629, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082629 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082629, 'test_bd', 'successful', '2015-02-23 18:13:46')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2632[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082629[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ed13610850d702dc0542d44a895f224' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:46', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'journal', 969082909, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'isbn', 1, '9789810743734', 969082909, '9789810743734')
[1m[36m (23.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082909, '1ed13610850d702dc0542d44a895f224')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082630
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082630
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:46', NULL, 969082630, 'test_bd', 'queued', '2015-02-23 18:13:46')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:46' WHERE `dispatched_services`.`id` = 2633[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082630 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082909)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082909)[0m
[1m[35mServiceResponse Load (7.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082630) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082630)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082630 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082630 AND `dispatched_services`.`id` = 2633 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082630, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/available
Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 245ms
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:13:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53b27ca481af2c17f35f593d3332b6a3' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:46', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'format', 'book', 969082910, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'genre', 1, 'book', 969082910, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'author', 1, 'smith', 969082910, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:46', 'title', 1, 'some book', 969082910, 'Some Book')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:13:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082910, '53b27ca481af2c17f35f593d3332b6a3')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082631[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:47', NULL, 969082631, 'BorrowDirect', 'queued', '2015-02-23 18:13:47')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2634
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082631 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082910)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082910)
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082631) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082631)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082631 AND `dispatched_services`.`id` = 2634 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082631, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2634
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082631 LIMIT 1
[1m[36mDispatchedService Load (7.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082910 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082910)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.6ms)
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082631 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082631 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.7ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"XRj0B1RjpA4eRBKaQB6RPJA_60k","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082910
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (50.7ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082622 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
[1m[35m (1.6ms)[0m BEGIN
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082631
[1m[36mSQL (7.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"XRj0B1RjpA4eRBKaQB6RPJA_60k\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2626[0m
[1m[35m (15.9ms)[0m COMMIT
Completed 200 OK in 357ms (Views: 137.3ms | ActiveRecord: 125.6ms)
[1m[36m (26.2ms)[0m [1mCOMMIT[0m
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:13:47 -0500
Processing by ResolveController#index as HTML
[1m[35m (2.1ms)[0m BEGIN
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mSQL (1.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013770[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8c278ddcca938bae3f4bd16f10f41e9a' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:47', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'format', 'journal', 969082911, 'journal')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'genre', 1, 'article', 969082911, 'article')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'title', 1, 'foo', 969082911, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'author', 1, 'bar', 969082911, 'bar')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:13:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082911, '8c278ddcca938bae3f4bd16f10f41e9a')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082632[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:47', NULL, 969082632, 'BorrowDirect', 'queued', '2015-02-23 18:13:47')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2635
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082632 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082911)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082911)
[1m[36mServiceResponse Load (6.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082632) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082632)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082632 AND `dispatched_services`.`id` = 2635 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2635[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082632 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082911 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082911)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082632 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082632 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082911
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082632
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 209ms (Views: 17.5ms | ActiveRecord: 118.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '277ced49c7be7993080c325d961e7a9c' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:13:47', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'format', 'book', 969082912, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'genre', 1, 'book', 969082912, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'title', 1, 'foo', 969082912, 'foo')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:13:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082912, '277ced49c7be7993080c325d961e7a9c')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082633 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:47', NULL, 969082633, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:13:47')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2636[0m
[1m[35m (14.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082633" for 127.0.0.1 at 2015-02-23 13:13:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082633"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082633 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082912 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082912)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082633[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082633[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082633 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082633[0m [["request_id", 969082633]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082912 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082912)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (7.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082633 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082633 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082912
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082633
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 80ms (Views: 19.1ms | ActiveRecord: 53.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '03261dfe4ea15fe5f4474e70ff9a51c4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:47', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'format', 'journal', 969082913, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:47', 'isbn', 1, '9789810743734', 969082913, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082913, '03261dfe4ea15fe5f4474e70ff9a51c4')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082634
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:47', NULL, 969082634, 'BorrowDirect', 'queued', '2015-02-23 18:13:47')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2637[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082913)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913)[0m
[1m[35mServiceResponse Load (6.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082634) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082634)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`id` = 2637 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082634, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:47', 'Choose your delivery location', 969082634, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:47' WHERE `dispatched_services`.`id` = 2637
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082913 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082634 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082913
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082634
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 264ms (Views: 24.0ms | ActiveRecord: 119.3ms)
Started GET "/borrow_direct/BorrowDirect/969082634?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:13:48 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082634"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082634 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2637
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:48', 969082634, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082913 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082634&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 38.9ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2637[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013786
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082634&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082634", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082913 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082634
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082634 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 [["request_id", 969082634]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082913 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082913)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082634 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082634 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082913[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082634[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 20.2ms | ActiveRecord: 50.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:13:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f59ab4599583da92a825132ec75e6a4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:48', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:48', 'format', 'journal', 969082914, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:48', 'isbn', 1, '0109836413', 969082914, '0109836413')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:13:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082914, '5f59ab4599583da92a825132ec75e6a4')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082635[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (6.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:48', NULL, 969082635, 'BorrowDirect', 'queued', '2015-02-23 18:13:48')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2638
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082635 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082914)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082914)
[1m[36mServiceResponse Load (6.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082635) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082635)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082635 AND `dispatched_services`.`id` = 2638 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082635, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:48', 'This item is not currently available from BorrowDirect', 969082635, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2638[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082635 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082914 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082914)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082635 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082635 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082914
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082635
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 307ms (Views: 20.3ms | ActiveRecord: 125.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f52b3c1eaff96205f805d84c84ff50e2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:48', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:48', 'format', 'journal', 969082915, 'journal')[0m
[1m[35mSQL (8.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:48', 'isbn', 1, '9789810743734', 969082915, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082915, 'f52b3c1eaff96205f805d84c84ff50e2')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082636
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:48', NULL, 969082636, 'BorrowDirect', 'queued', '2015-02-23 18:13:48')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2639[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082915)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915)[0m
[1m[35mServiceResponse Load (6.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082636) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082636)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`id` = 2639 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082636, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:48', 'Choose your delivery location', 969082636, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2639
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082915 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082636 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082915
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082636
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 267ms (Views: 21.1ms | ActiveRecord: 127.2ms)
Started GET "/borrow_direct/BorrowDirect/969082636?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:13:48 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082636"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082636 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2639
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:48', 969082636, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082915 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082636&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 39.7ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:48' WHERE `dispatched_services`.`id` = 2639[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013791
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082636&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082636", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082915 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082636
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082636 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 [["request_id", 969082636]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082915 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082915)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082636 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082636 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082915[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082636[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 75ms (Views: 17.8ms | ActiveRecord: 48.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43a0e326c1909bafcc8ee59e1c484dfc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:49', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:49', 'format', 'journal', 969082916, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:49', 'isbn', 1, '9789810743734', 969082916, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082916, '43a0e326c1909bafcc8ee59e1c484dfc')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082637[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:49', NULL, 969082637, 'BorrowDirect', 'queued', '2015-02-23 18:13:49')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:49' WHERE `dispatched_services`.`id` = 2640
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082637 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082916)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082916)
[1m[36mServiceResponse Load (6.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082637) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082637)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082637 AND `dispatched_services`.`id` = 2640 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082637, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:49', 'Choose your delivery location', 969082637, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:49' WHERE `dispatched_services`.`id` = 2640[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082637 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082916 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082916)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082637 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082637 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082637 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082916[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082637[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 300ms (Views: 22.0ms | ActiveRecord: 118.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:13:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fdfd2e40ae57a1024c0abd77eedec692' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:13:49', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:49', 'format', 'journal', 969082917, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:13:49', 'isbn', 1, '9789810743734', 969082917, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:13:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082917, 'fdfd2e40ae57a1024c0abd77eedec692')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082638[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:13:49', NULL, 969082638, 'BorrowDirect', 'queued', '2015-02-23 18:13:49')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:13:49' WHERE `dispatched_services`.`id` = 2641
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082917)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917)
[1m[36mServiceResponse Load (6.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082638) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082638)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`id` = 2641 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:13:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082638, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:49', 'Choose your delivery location', 969082638, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:13:49' WHERE `dispatched_services`.`id` = 2641[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082917 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082638 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082917[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082638[0m
[1m[35m (15.2ms)[0m COMMIT
Completed 200 OK in 267ms (Views: 22.5ms | ActiveRecord: 120.4ms)
Started GET "/borrow_direct/BorrowDirect/969082638" for 127.0.0.1 at 2015-02-23 13:13:49 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082638"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082638 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:13:49', 969082638, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082917 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082638&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.9ms)
Started GET "/resolve?umlaut.request_id=969082638&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A13%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:13:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082638", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:13:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082917 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082638
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 [["request_id", 969082638]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082917 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082917)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082638 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082638 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082638 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082917
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082638
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 83ms (Views: 20.8ms | ActiveRecord: 53.6ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 50ms (Views: 39.9ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 35ms (Views: 0.4ms | ActiveRecord: 6.5ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6432522b92c0976bddfee8483df28a6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082918, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082918, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082918, 'b6432522b92c0976bddfee8483df28a6')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082639"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082639 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082639 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082639
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082639, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082639\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082918 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082918)
Redirected to http://test.host/resolve?umlaut.request_id=969082639&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 91ms (ActiveRecord: 35.2ms)
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '705907355c1c415d244ae4a96d3d9103' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082919, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082919, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082919, '705907355c1c415d244ae4a96d3d9103')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082640, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082640"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082640 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082640 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013798
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082640, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013798\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082919 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082919)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082640&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.9ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfa26a99802cd96f1d94187d4a9159d2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082920, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082920, '121212')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082920, 'dfa26a99802cd96f1d94187d4a9159d2')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082641, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082641"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082641 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082641 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082641 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:10', NULL, 969082641, 'BorrowDirect', 'in_progress', '2015-02-23 18:14:10')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2642[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082641, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082920 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082920)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082641&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 86ms (ActiveRecord: 66.9ms)
[1m[35mDispatchedService Load (4.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082641
[1m[36mServiceResponse Load (6.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082641 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082641 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2642
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013801[0m
[1m[35m (14.6ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f050e4fa93cb10b8bcdc102fd7b14323' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082921, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082921, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082921, 'f050e4fa93cb10b8bcdc102fd7b14323')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082642, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082642"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082642 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082642 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082642 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:10', NULL, 969082642, 'BorrowDirect', 'in_progress', '2015-02-23 18:14:10')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2643
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082642, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082921 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082921)
Redirected to http://example.org
Completed 302 Found in 76ms (ActiveRecord: 65.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (10.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e631c348718d745858718e4e1da235f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082922, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082922, '121212')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082922, '8e631c348718d745858718e4e1da235f')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082643, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082643"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082643 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (6.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082643 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082643 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:10', NULL, 969082643, 'BorrowDirect', 'in_progress', '2015-02-23 18:14:10')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2644
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082643, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082922 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082922)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 83ms (Views: 0.3ms | ActiveRecord: 69.5ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f872b344fc87e99dacf66a4c5be739a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mDispatchedService Load (3.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082643 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '121212')
[1m[36m (1.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082923, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '121212', 969082923, '121212')[0m
[1m[35mSQL (2.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:14:10' WHERE `dispatched_services`.`id` = 2644
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082923, '3f872b344fc87e99dacf66a4c5be739a')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013805
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082644"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082644 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082644 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:10', 969082644, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082923 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082923)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082644&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.6ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88cd51160077c58e9719b271ebcb36ce' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:10', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'format', 'journal', 969082924, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:10', 'isbn', 1, '9789810743734', 969082924, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082924, '88cd51160077c58e9719b271ebcb36ce')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082645 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082645, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082645 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082645, 'test_bd', 'failed_temporary', '2015-02-23 18:14:11')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2645
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082645
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26a96a3aeb5ff78014681c43d2e26e52' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:11', '000000000')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082925, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'isbn', 1, '000000000', 969082925, '000000000')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082925, '26a96a3aeb5ff78014681c43d2e26e52')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082646 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082646, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:11', 'This item is not currently available from BorrowDirect', 969082646, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082646 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082646, 'test_bd', 'successful', '2015-02-23 18:14:11')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2646
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082646
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '758f75db4dafe0ee5940edcd9d0b5c8a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:11', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082926, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'isbn', 1, '9789810743734', 969082926, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082926, '758f75db4dafe0ee5940edcd9d0b5c8a')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (6.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082647 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082647, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:11', 'Choose your delivery location', 969082647, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082647 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082647, 'test_bd', 'successful', '2015-02-23 18:14:11')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2647
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082647
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a02a487c193d0e2f2c0828ae1cc6b608' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:11', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082927, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'isbn', 1, '0109836413', 969082927, '0109836413')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082927, 'a02a487c193d0e2f2c0828ae1cc6b608')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082648 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082648, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:11', 'This item is not currently available from BorrowDirect', 969082648, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082648 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082648, 'test_bd', 'successful', '2015-02-23 18:14:11')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2648
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082648
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69bbfb7a3ccfcf6fd238848f60efded3' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:11', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082928, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082928, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'aulast', 1, 'grimes', 969082928, 'Grimes')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082928, '69bbfb7a3ccfcf6fd238848f60efded3')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082649, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082649 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1de9b83b07b466618d6c0a0c5941b75a' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:14:11', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082929, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'auinit', 1, 'rd', 969082929, 'RD')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'aulast', 1, 'kaplan', 969082929, 'Kaplan')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'atitle', 1, 'the coming anarchy', 969082929, 'The coming anarchy')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'title', 1, 'the atlantic monthly', 969082929, 'The Atlantic monthly')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'volume', 1, '273', 969082929, '273')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'issue', 1, '2', 969082929, '2')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'date', 1, '1994', 969082929, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'spage', 1, '44', 969082929, '44')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'issn', 1, '1072-7825', 969082929, '1072-7825')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082929, 'info:sid/google', '1de9b83b07b466618d6c0a0c5941b75a')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082650 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082650, 'test_bd', 'successful', '2015-02-23 18:14:11')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2649[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082650[0m
[1m[35mServiceResponse Exists (2.6ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082650 LIMIT 1
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc0e073269562b5edaa0c9f8b184a26e' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:14:11', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'book', 969082930, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'auinit', 1, 'eh', 969082930, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'aulast', 1, 'lenneberg', 969082930, 'Lenneberg')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'title', 1, 'biological foundations of language', 969082930, 'Biological foundations of language')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'genre', 1, 'book', 969082930, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'date', 1, '1967', 969082930, '1967')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:14:11', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082930, 'info:sid/google', 'cc0e073269562b5edaa0c9f8b184a26e')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082651 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082651, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082651 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082651, 'test_bd', 'successful', '2015-02-23 18:14:11')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2650[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082651[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8ef6194d5b34640be664f553c79e1bd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:11', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'format', 'journal', 969082931, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:11', 'isbn', 1, '9789810743734', 969082931, '9789810743734')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082931, 'f8ef6194d5b34640be664f553c79e1bd')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082652
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:11', NULL, 969082652, 'test_bd', 'queued', '2015-02-23 18:14:11')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:11' WHERE `dispatched_services`.`id` = 2651[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082652 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082931)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082931)[0m
[1m[35mServiceResponse Load (6.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082652) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082652)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082652 AND `dispatched_services`.`id` = 2651 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082652, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.9ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2651[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082652 LIMIT 1[0m
[1m[35mDispatchedService Load (38.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082931 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082931)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082652 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082652 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082931[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082652[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 387ms (Views: 130.2ms | ActiveRecord: 122.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:14:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f978d9cd61cecdd0422b9044cb02b595' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:12', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'format', 'book', 969082932, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'genre', 1, 'book', 969082932, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'author', 1, 'smith', 969082932, 'Smith')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'title', 1, 'some book', 969082932, 'Some Book')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:14:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082932, 'f978d9cd61cecdd0422b9044cb02b595')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082653[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:12', NULL, 969082653, 'BorrowDirect', 'queued', '2015-02-23 18:14:12')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2652
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082653 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082932)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082932)
[1m[36mServiceResponse Load (6.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082653) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082653)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082653 AND `dispatched_services`.`id` = 2652 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082653, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2652
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082653 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082932 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082932)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (7.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082653 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082653 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082932[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082653[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 237ms (Views: 19.4ms | ActiveRecord: 122.4ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:14:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7094b5e1a3fc74a885b0ed92db377a7' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:12', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'format', 'journal', 969082933, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'genre', 1, 'article', 969082933, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'title', 1, 'foo', 969082933, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'author', 1, 'bar', 969082933, 'bar')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:14:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082933, 'f7094b5e1a3fc74a885b0ed92db377a7')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082654[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:12', NULL, 969082654, 'BorrowDirect', 'queued', '2015-02-23 18:14:12')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2653
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082654 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082933)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082933)
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082654) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082654)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082654 AND `dispatched_services`.`id` = 2653 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2653[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082654 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082933 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082933)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082654 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082654 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082933
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082654
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 213ms (Views: 17.5ms | ActiveRecord: 121.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9455b532b895111e7ece49273567206b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:12', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'format', 'book', 969082934, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'genre', 1, 'book', 969082934, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'title', 1, 'foo', 969082934, 'foo')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:14:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082934, '9455b532b895111e7ece49273567206b')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082655 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:12', NULL, 969082655, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:14:12')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:12' WHERE `dispatched_services`.`id` = 2654[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082655" for 127.0.0.1 at 2015-02-23 13:14:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082655"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082655 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082934 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082934)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082655[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082655[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082655 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082655[0m [["request_id", 969082655]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082934 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082934)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (7.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082655 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082655 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082934
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082655
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 75ms (Views: 18.2ms | ActiveRecord: 49.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ce9ca3d86d1d4ec6d3002d3e8dfb6317' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:12', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'format', 'journal', 969082935, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:12', 'isbn', 1, '9789810743734', 969082935, '9789810743734')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082935, 'ce9ca3d86d1d4ec6d3002d3e8dfb6317')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082656
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:13', NULL, 969082656, 'BorrowDirect', 'queued', '2015-02-23 18:14:13')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2655[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082935)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935)[0m
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082656) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082656)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`id` = 2655 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082656, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:13', 'Choose your delivery location', 969082656, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2655
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082935 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082656 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082935
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082656
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 267ms (Views: 24.7ms | ActiveRecord: 123.5ms)
Started GET "/borrow_direct/BorrowDirect/969082656?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:14:13 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082656"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082656 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2655
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:13', 969082656, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082935 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082656&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.2ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2655[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013820
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082656&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:14:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082656", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:14:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082935 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082656
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082656 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 [["request_id", 969082656]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082935 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082935)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082656 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082656 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082935[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082656[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 20.7ms | ActiveRecord: 48.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:14:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd10aa4e59101bcae3689d0b4f27be79e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:13', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:13', 'format', 'journal', 969082936, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:13', 'isbn', 1, '0109836413', 969082936, '0109836413')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:14:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082936, 'd10aa4e59101bcae3689d0b4f27be79e')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082657[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:13', NULL, 969082657, 'BorrowDirect', 'queued', '2015-02-23 18:14:13')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2656
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082657 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082936)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082936)
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082657) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082657)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082657 AND `dispatched_services`.`id` = 2656 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082657, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:13', 'This item is not currently available from BorrowDirect', 969082657, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2656[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082657 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082936 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082936)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082657 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082657 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082936
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082657
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 298ms (Views: 19.6ms | ActiveRecord: 118.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8b6f86797934b0b1fe2a13cea91d5100' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:13', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:13', 'format', 'journal', 969082937, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:13', 'isbn', 1, '9789810743734', 969082937, '9789810743734')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082937, '8b6f86797934b0b1fe2a13cea91d5100')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082658
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:13', NULL, 969082658, 'BorrowDirect', 'queued', '2015-02-23 18:14:13')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2657[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082937)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937)[0m
[1m[35mServiceResponse Load (6.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082658) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082658)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`id` = 2657 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082658, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:13', 'Choose your delivery location', 969082658, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:13' WHERE `dispatched_services`.`id` = 2657
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082937 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082658 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082937
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082658
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 266ms (Views: 21.9ms | ActiveRecord: 123.3ms)
Started GET "/borrow_direct/BorrowDirect/969082658?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:14:14 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082658"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082658 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2657
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:14', 969082658, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082937 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082658&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 49ms (ActiveRecord: 40.0ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2657[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013825
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082658&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:14:14 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082658", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:14:14-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082937 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082658
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082658 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 [["request_id", 969082658]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082937 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082937)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082658 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082658 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082937[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082658[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 18.4ms | ActiveRecord: 50.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:14 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fd6bb44e119c0d2c57d58682216df4cd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:14', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'format', 'journal', 969082938, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'isbn', 1, '9789810743734', 969082938, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:14', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082938, 'fd6bb44e119c0d2c57d58682216df4cd')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082659[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:14', NULL, 969082659, 'BorrowDirect', 'queued', '2015-02-23 18:14:14')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2658
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082659 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082938)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082938)
[1m[36mServiceResponse Load (7.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082659) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082659)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082659 AND `dispatched_services`.`id` = 2658 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082659, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:14', 'Choose your delivery location', 969082659, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2658[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082659 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082938 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082938)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082659 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082659 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082659 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082938[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082659[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 310ms (Views: 22.9ms | ActiveRecord: 123.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:14 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '86a058e73b64fedfc03a77496270c71d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:14', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'format', 'journal', 969082939, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'isbn', 1, '9789810743734', 969082939, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:14', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082939, '86a058e73b64fedfc03a77496270c71d')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082660[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:14', NULL, 969082660, 'BorrowDirect', 'queued', '2015-02-23 18:14:14')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2659
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082939)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939)
[1m[36mServiceResponse Load (6.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082660) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082660)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`id` = 2659 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082660, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:14', 'Choose your delivery location', 969082660, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:14' WHERE `dispatched_services`.`id` = 2659[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082939 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082660 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082939[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082660[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 257ms (Views: 21.7ms | ActiveRecord: 118.4ms)
Started GET "/borrow_direct/BorrowDirect/969082660" for 127.0.0.1 at 2015-02-23 13:14:14 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082660"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082660 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:14', 969082660, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082939 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082660&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.3ms)
Started GET "/resolve?umlaut.request_id=969082660&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:14:14 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082660", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:14:14-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082939 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082660
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 [["request_id", 969082660]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082939 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082939)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082660 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082660 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082660 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082939
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082660
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 80ms (Views: 22.5ms | ActiveRecord: 49.0ms)
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '551a028613ffcfb2b00d911a300449f6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:14', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'format', 'journal', 969082940, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:14', 'isbn', 1, '9789810743734', 969082940, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082940, '551a028613ffcfb2b00d911a300449f6')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082661 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082661, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082661 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082661, 'test_bd', 'successful', '2015-02-23 18:14:15')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2660
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082661
[1m[36m (0.8ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a68b8b3453bbe59094d9efdf2a03417a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:15', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'format', 'journal', 969082941, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'title', 1, 'title', 969082941, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'author', 1, 'au', 969082941, 'au')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:14:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082941, 'a68b8b3453bbe59094d9efdf2a03417a')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:15', 969082662, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082662, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082662 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082662, 'test_bd', 'successful', '2015-02-23 18:14:15')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2661
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082662
[1m[36mServiceResponse Load (7.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082662 ORDER BY id ASC[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9574f39efcb2b4980fa41052a6a3a1b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:15', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'format', 'journal', 969082942, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'title', 1, 'title', 969082942, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'author', 1, 'au', 969082942, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:14:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082942, '9574f39efcb2b4980fa41052a6a3a1b3')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:15', 969082663, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (6.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082663 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082663 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082663, 'test_bd', 'successful', '2015-02-23 18:14:15')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2662[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082663[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c352f74be0baf744faee1fce5c78702c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:15', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'format', 'journal', 969082943, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'title', 1, 'title', 969082943, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'author', 1, 'au', 969082943, 'au')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:14:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082943, 'c352f74be0baf744faee1fce5c78702c')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:15', 969082664, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (7.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082664 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082664, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082664 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082664, 'test_bd', 'successful', '2015-02-23 18:14:15')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2663
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082664
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e1f56716e6206a2d592ea6da09e61f4c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:15', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'format', 'journal', 969082944, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'title', 1, 'title', 969082944, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:15', 'author', 1, 'au', 969082944, 'au')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:14:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082944, 'e1f56716e6206a2d592ea6da09e61f4c')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:15', 969082665, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082665 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082665, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082665 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:15', NULL, 969082665, 'test_bd', 'successful', '2015-02-23 18:14:15')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:15' WHERE `dispatched_services`.`id` = 2664[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082665[0m
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:57 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f61d3618466287c44f9952a08413c47' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:58', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'format', 'journal', 969082945, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'isbn', 1, '9789810743734', 969082945, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:58', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082945, '8f61d3618466287c44f9952a08413c47')[0m
[1m[35m (25.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082666
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082666
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:58', NULL, 969082666, 'test_bd', 'queued', '2015-02-23 18:14:58')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:58' WHERE `dispatched_services`.`id` = 2665[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082666 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082945)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082945)[0m
[1m[35mServiceResponse Load (7.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082666) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082666)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082666 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082666 AND `dispatched_services`.`id` = 2665 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082666, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/available
Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in `find_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 461ms
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:14:58 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '729e922e8ed585c957a5f6253731a573' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:58', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'format', 'book', 969082946, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'genre', 1, 'book', 969082946, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'author', 1, 'smith', 969082946, 'Smith')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:58', 'title', 1, 'some book', 969082946, 'Some Book')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:14:58', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082946, '729e922e8ed585c957a5f6253731a573')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082667[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:58', NULL, 969082667, 'BorrowDirect', 'queued', '2015-02-23 18:14:58')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:58' WHERE `dispatched_services`.`id` = 2666
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082667 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082946)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082946)
[1m[36mServiceResponse Load (8.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082667) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082667)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082667 AND `dispatched_services`.`id` = 2666 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:58', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082667, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:58' WHERE `dispatched_services`.`id` = 2666
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082667 LIMIT 1
[1m[36mDispatchedService Load (7.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms)
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082946 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082946)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms)
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082667 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082667 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082946[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082667[0m
[1m[35m (25.2ms)[0m COMMIT
Completed 200 OK in 390ms (Views: 134.3ms | ActiveRecord: 149.5ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:14:59 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '915d0338f83a4663c3a7e9dcb2ca0df8' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:59', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'format', 'journal', 969082947, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'genre', 1, 'article', 969082947, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'title', 1, 'foo', 969082947, 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'author', 1, 'bar', 969082947, 'bar')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:14:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082947, '915d0338f83a4663c3a7e9dcb2ca0df8')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082668[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:59', NULL, 969082668, 'BorrowDirect', 'queued', '2015-02-23 18:14:59')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2667
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082668 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082947)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082947)
[1m[36mServiceResponse Load (7.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082668) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082668)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082668 AND `dispatched_services`.`id` = 2667 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2667[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082668 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082947 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082947)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (7.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082668 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082668 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082947
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082668
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 217ms (Views: 17.5ms | ActiveRecord: 124.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd615abf853e402b4ea7e208ad39218a8' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:14:59', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'format', 'book', 969082948, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'genre', 1, 'book', 969082948, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'title', 1, 'foo', 969082948, 'foo')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:14:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082948, 'd615abf853e402b4ea7e208ad39218a8')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082669 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:59', NULL, 969082669, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:14:59')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2668[0m
[1m[35m (14.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082669" for 127.0.0.1 at 2015-02-23 13:14:59 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082669"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082669 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082948 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082948)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082669[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082669[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082669 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082669[0m [["request_id", 969082669]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082948 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082948)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (8.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082669 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082669 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082948
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082669
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 113ms (Views: 54.3ms | ActiveRecord: 51.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:14:59 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '457ba690da2ed74cc79645cd217c48e4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:59', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'format', 'journal', 969082949, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'isbn', 1, '9789810743734', 969082949, '9789810743734')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:14:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082949, '457ba690da2ed74cc79645cd217c48e4')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082670
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:14:59', NULL, 969082670, 'BorrowDirect', 'queued', '2015-02-23 18:14:59')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2669[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082949)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949)[0m
[1m[35mServiceResponse Load (6.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082670) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082670)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`id` = 2669 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:14:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082670, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:59', 'Choose your delivery location', 969082670, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2669
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082949 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082670 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082949
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082670
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 269ms (Views: 24.0ms | ActiveRecord: 124.4ms)
Started GET "/borrow_direct/BorrowDirect/969082670?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:14:59 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082670"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082670 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2669
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:14:59', 969082670, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082949 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082670&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 38.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:14:59' WHERE `dispatched_services`.`id` = 2669[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013843
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082670&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A14%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:14:59 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082670", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:14:59-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082949 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082670
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082670 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 [["request_id", 969082670]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082949 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082949)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (6.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082670 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082670 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082949[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082670[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 80ms (Views: 21.4ms | ActiveRecord: 49.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:14:59 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a3784f0a9d79220b1128c8924f8e0699' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:14:59', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'format', 'journal', 969082950, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:14:59', 'isbn', 1, '0109836413', 969082950, '0109836413')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:15:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082950, 'a3784f0a9d79220b1128c8924f8e0699')
[1m[36m (34.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082671[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:00', NULL, 969082671, 'BorrowDirect', 'queued', '2015-02-23 18:15:00')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2670
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082671 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082950)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082950)
[1m[36mServiceResponse Load (7.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082671) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082671)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082671 AND `dispatched_services`.`id` = 2670 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082671, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:00', 'This item is not currently available from BorrowDirect', 969082671, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2670[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082671 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082950 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082950)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082671 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082671 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082950
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082671
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 325ms (Views: 18.9ms | ActiveRecord: 147.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:15:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0178fc619fd987fb979c8709b094c701' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:00', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:00', 'format', 'journal', 969082951, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:00', 'isbn', 1, '9789810743734', 969082951, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (6.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082951, '0178fc619fd987fb979c8709b094c701')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082672
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:00', NULL, 969082672, 'BorrowDirect', 'queued', '2015-02-23 18:15:00')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2671[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082951)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951)[0m
[1m[35mServiceResponse Load (6.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082672) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082672)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`id` = 2671 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082672, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:00', 'Choose your delivery location', 969082672, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2671
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082951 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082672 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082951
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082672
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 274ms (Views: 22.8ms | ActiveRecord: 130.3ms)
Started GET "/borrow_direct/BorrowDirect/969082672?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:15:00 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082672"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082672 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2671
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:00', 969082672, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082951 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082672&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 51ms (ActiveRecord: 42.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2671[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013848
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082672&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:15:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082672", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:15:00-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082951 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082672
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082672 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 [["request_id", 969082672]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082951 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082951)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082672 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082672 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082951[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082672[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 80ms (Views: 18.9ms | ActiveRecord: 51.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:15:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fff2ab4153cdba9cf64a19204aad5dc1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:00', '9789810743734')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:00', 'format', 'journal', 969082952, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:00', 'isbn', 1, '9789810743734', 969082952, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082952, 'fff2ab4153cdba9cf64a19204aad5dc1')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082673[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:00', NULL, 969082673, 'BorrowDirect', 'queued', '2015-02-23 18:15:00')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:00' WHERE `dispatched_services`.`id` = 2672
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082673 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082952)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082952)
[1m[36mServiceResponse Load (7.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082673) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082673)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082673 AND `dispatched_services`.`id` = 2672 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082673, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 'Choose your delivery location', 969082673, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2672[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082673 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082952 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082952)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082673 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082673 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082673 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082952[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082673[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 316ms (Views: 21.5ms | ActiveRecord: 125.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:15:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '02449987e4875af640b90964a6a04797' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:01', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'format', 'journal', 969082953, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'isbn', 1, '9789810743734', 969082953, '9789810743734')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082953, '02449987e4875af640b90964a6a04797')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082674[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:01', NULL, 969082674, 'BorrowDirect', 'queued', '2015-02-23 18:15:01')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2673
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082953)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953)
[1m[36mServiceResponse Load (7.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082674) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082674)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (24.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`id` = 2673 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082674, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 'Choose your delivery location', 969082674, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2673[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082953 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082674 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082953[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082674[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 279ms (Views: 20.8ms | ActiveRecord: 126.2ms)
Started GET "/borrow_direct/BorrowDirect/969082674" for 127.0.0.1 at 2015-02-23 13:15:01 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082674"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082674 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082674, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082953 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082674&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.1ms)
Started GET "/resolve?umlaut.request_id=969082674&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:15:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082674", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:15:01-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082953 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082674
[1m[36m (23.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 [["request_id", 969082674]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082953 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082953)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082674 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082674 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082674 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082953
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082674
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 90ms (Views: 22.1ms | ActiveRecord: 58.9ms)
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'face7ea059a5729bb995372d71e8b651' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:01', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'format', 'journal', 969082954, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'isbn', 1, '121212', 969082954, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082954, 'face7ea059a5729bb995372d71e8b651')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082675"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082675 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082675 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082675
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082675, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082675\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082954 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082954)
Redirected to http://test.host/resolve?umlaut.request_id=969082675&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 38ms (ActiveRecord: 31.0ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77e7b7a8cc4681724c2dda86fd149a1b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:01', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'format', 'journal', 969082955, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'isbn', 1, '121212', 969082955, '121212')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082955, '77e7b7a8cc4681724c2dda86fd149a1b')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082676, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082676"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082676 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082676 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013855
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082676, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013855\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082955 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082955)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082676&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95fec44cbb4c0838b1116fc43d8633e5' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:01', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'format', 'journal', 969082956, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:01', 'isbn', 1, '121212', 969082956, '121212')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082956, '95fec44cbb4c0838b1116fc43d8633e5')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082677, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (30.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082677"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082677 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082677 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082677 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:01', NULL, 969082677, 'BorrowDirect', 'in_progress', '2015-02-23 18:15:01')
[1m[36m (29.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2674[0m
[1m[35m (22.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:01', 969082677, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082956 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082956)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082677&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 95ms (ActiveRecord: 84.2ms)
[1m[35mDispatchedService Load (4.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082677
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082677 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:15:01' WHERE `dispatched_services`.`id` = 2674[0m
[1m[35mServiceResponse Load (7.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082677 ORDER BY id ASC
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013858[0m
[1m[35m (14.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f4b7f0f404b4df0aecc7ff0cc915d37' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:02', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082957, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'isbn', 1, '121212', 969082957, '121212')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.9ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082957, '9f4b7f0f404b4df0aecc7ff0cc915d37')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082678, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082678"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082678 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082678 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (6.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082678, 'BorrowDirect', 'in_progress', '2015-02-23 18:15:02')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2675
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082678, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082957 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082957)
Redirected to http://example.org
Completed 302 Found in 75ms (ActiveRecord: 65.6ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89cb37cccd1686023192746c42d557aa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mDispatchedService Load (3.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:02', '121212')
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082958, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'isbn', 1, '121212', 969082958, '121212')[0m
[1m[35mSQL (2.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2675
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082958, '89cb37cccd1686023192746c42d557aa')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013860
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082679, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082679"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082679 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082679 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082679 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082679, 'BorrowDirect', 'in_progress', '2015-02-23 18:15:02')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2676[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082679, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082958 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082958)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 60.9ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082679 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mRequest Load (3.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f48411ca5e3b36e53c449d575e2cd1f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2676
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:02', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082959, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'isbn', 1, '121212', 969082959, '121212')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013862
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082959, '0f48411ca5e3b36e53c449d575e2cd1f')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082680"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082680 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082680 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082680, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082959 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082959)
Redirected to http://test.host/resolve?umlaut.request_id=969082680&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A15%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 26.9ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7062d2e2d0372ca6c65d85d2e45553d5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:02', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082960, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'title', 1, 'title', 969082960, 'title')[0m
[1m[35mSQL (6.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'author', 1, 'au', 969082960, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082960, '7062d2e2d0372ca6c65d85d2e45553d5')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082681, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082681, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082681 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082681, 'test_bd', 'successful', '2015-02-23 18:15:02')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2677
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082681
[1m[36mServiceResponse Load (7.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082681 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (1.0ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb9d5b9cc2a01765badc611d6824d42b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:02', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082961, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'title', 1, 'title', 969082961, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'author', 1, 'au', 969082961, 'au')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082961, 'bb9d5b9cc2a01765badc611d6824d42b')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082682, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (7.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082682 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082682 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082682, 'test_bd', 'successful', '2015-02-23 18:15:02')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2678[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082682[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42bf2197f5a754dda96cf241f7d9184c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:02', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082962, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'title', 1, 'title', 969082962, 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'author', 1, 'au', 969082962, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082962, '42bf2197f5a754dda96cf241f7d9184c')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082683, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (7.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082683 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082683, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082683 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082683, 'test_bd', 'successful', '2015-02-23 18:15:02')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2679
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082683
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ec138b0de00f7d81da4ffb82799e39a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:02', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082963, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'title', 1, 'title', 969082963, 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'author', 1, 'au', 969082963, 'au')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082963, '2ec138b0de00f7d81da4ffb82799e39a')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:02', 969082684, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082684 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082684, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082684 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:02', NULL, 969082684, 'test_bd', 'successful', '2015-02-23 18:15:02')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:02' WHERE `dispatched_services`.`id` = 2680[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082684[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74104a866c172fb117c932042137d09e' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:02', '000000000')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'format', 'journal', 969082964, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:02', 'isbn', 1, '000000000', 969082964, '000000000')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:15:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082964, '74104a866c172fb117c932042137d09e')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082685 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082685, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:03', 'This item is not currently available from BorrowDirect', 969082685, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082685 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082685, 'test_bd', 'successful', '2015-02-23 18:15:03')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2681[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082685[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aa2e78e4ef67c01b4c6cb30a520cccb1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:03', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082965, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'isbn', 1, '9789810743734', 969082965, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082965, 'aa2e78e4ef67c01b4c6cb30a520cccb1')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (7.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082686 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082686, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082686 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082686, 'test_bd', 'failed_temporary', '2015-02-23 18:15:03')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-1ac419e8c54f/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2682
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082686
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c9b95e4bafdbb31b5ac73e609af14a0a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:03', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082966, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'isbn', 1, '0109836413', 969082966, '0109836413')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082966, 'c9b95e4bafdbb31b5ac73e609af14a0a')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082687 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082687, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:03', 'This item is not currently available from BorrowDirect', 969082687, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082687 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082687, 'test_bd', 'successful', '2015-02-23 18:15:03')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2683
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082687
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a5a607e4f86847139c4c2bcded36e1ed' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:03', '9789810743734')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082967, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'isbn', 1, '9789810743734', 969082967, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082967, 'a5a607e4f86847139c4c2bcded36e1ed')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082688 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082688, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:15:03', 'Choose your delivery location', 969082688, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082688 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082688, 'test_bd', 'successful', '2015-02-23 18:15:03')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2684
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082688
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e990f3087203308dfc796e6da5938362' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (11.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:15:03', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082968, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082968, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'aulast', 1, 'grimes', 969082968, 'Grimes')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082968, 'e990f3087203308dfc796e6da5938362')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082689, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22Grimes%22')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082689 ORDER BY id ASC
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5cc4ba59cadb4af328b2cc50fddcbaba' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:15:03', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082969, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'auinit', 1, 'rd', 969082969, 'RD')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'aulast', 1, 'kaplan', 969082969, 'Kaplan')
[1m[36mSQL (6.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'atitle', 1, 'the coming anarchy', 969082969, 'The coming anarchy')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'title', 1, 'the atlantic monthly', 969082969, 'The Atlantic monthly')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'volume', 1, '273', 969082969, '273')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'issue', 1, '2', 969082969, '2')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'date', 1, '1994', 969082969, '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'spage', 1, '44', 969082969, '44')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'issn', 1, '1072-7825', 969082969, '1072-7825')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082969, 'info:sid/google', '5cc4ba59cadb4af328b2cc50fddcbaba')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082690 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082690, 'test_bd', 'successful', '2015-02-23 18:15:03')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2685[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082690[0m
[1m[35mServiceResponse Exists (2.7ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082690 LIMIT 1
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a01c65a2233a5610536ec550a30392f6' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:15:03', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'book', 969082970, 'book')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'auinit', 1, 'eh', 969082970, 'EH')[0m
[1m[35mSQL (9.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'aulast', 1, 'lenneberg', 969082970, 'Lenneberg')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'title', 1, 'biological foundations of language', 969082970, 'Biological foundations of language')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'genre', 1, 'book', 969082970, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'date', 1, '1967', 969082970, '1967')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082970, 'info:sid/google', 'a01c65a2233a5610536ec550a30392f6')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082691 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082691, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22Lenneberg%22')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082691 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082691, 'test_bd', 'successful', '2015-02-23 18:15:03')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2686[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082691[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5442328aa1cc974f2fc0db93d6765099' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:15:03', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'format', 'journal', 969082971, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:15:03', 'isbn', 1, '9789810743734', 969082971, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:15:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082971, '5442328aa1cc974f2fc0db93d6765099')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (7.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082692 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:15:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082692, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082692 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:15:03', NULL, 969082692, 'test_bd', 'successful', '2015-02-23 18:15:03')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:15:03' WHERE `dispatched_services`.`id` = 2687
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082692
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 51ms (Views: 40.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 35ms (Views: 0.4ms | ActiveRecord: 6.8ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd468e1ae100d49fa0865910d6d42289a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082972, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082972, '121212')[0m
[1m[35m (31.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082972, 'd468e1ae100d49fa0865910d6d42289a')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082693"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082693 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082693 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082693
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082693, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082693\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082972 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082972)
Redirected to http://test.host/resolve?umlaut.request_id=969082693&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 90ms (ActiveRecord: 34.1ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca66539b14fe4aa83b8d01409b6a5c8c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082973, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082973, '121212')[0m
[1m[35m (24.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082973, 'ca66539b14fe4aa83b8d01409b6a5c8c')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082694, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (34.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082694"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082694 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082694 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013882
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082694, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013882\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082973 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082973)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082694&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 38ms (ActiveRecord: 31.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89b96710001905f40478139d0c6a2368' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082974, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082974, '121212')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082974, '89b96710001905f40478139d0c6a2368')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082695, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082695"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082695 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082695 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:04', NULL, 969082695, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:04')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:04' WHERE `dispatched_services`.`id` = 2688[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082695, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082974 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082974)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082695&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 86ms (ActiveRecord: 65.7ms)
[1m[35mDispatchedService Load (4.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082695
[1m[36mServiceResponse Load (8.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082695 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:04' WHERE `dispatched_services`.`id` = 2688
[1m[36m (22.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013885[0m
[1m[35m (14.2ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ec987264b1627c8d2e72e4ac7047f78' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082975, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082975, '121212')[0m
[1m[35m (25.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082975, '4ec987264b1627c8d2e72e4ac7047f78')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082696, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082696"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082696 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082696 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082696 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:04', NULL, 969082696, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:04')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:04' WHERE `dispatched_services`.`id` = 2689
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082696, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082975 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082975)
Redirected to http://example.org
Completed 302 Found in 84ms (ActiveRecord: 70.6ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (11.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d66482066f6182c4151229640dd33b9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:04', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'format', 'journal', 969082976, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:04', 'isbn', 1, '121212', 969082976, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082976, '8d66482066f6182c4151229640dd33b9')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:04', 969082697, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082697"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082697 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082697 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (8.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082697, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:05')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2690
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082697, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082976 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082976)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 81ms (Views: 0.3ms | ActiveRecord: 67.8ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '90a4dfacac960e7410173d899c3b57a8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35m (2.3ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:05', '121212')[0m
[1m[35mSQL (1.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2690
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082977, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'isbn', 1, '121212', 969082977, '121212')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013889[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082977, '90a4dfacac960e7410173d899c3b57a8')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082698"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082698 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082698 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082698, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082977 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082977)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082698&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.4ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c0f60da16b6a0aa80527ca8ccc27444' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082978, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969082978, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'aulast', 1, 'grimes', 969082978, 'Grimes')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082978, '1c0f60da16b6a0aa80527ca8ccc27444')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082699, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082699 ORDER BY id ASC[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5cd344ba74fcc47f8fc7be63ced2dee' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:16:05', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082979, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'auinit', 1, 'rd', 969082979, 'RD')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'aulast', 1, 'kaplan', 969082979, 'Kaplan')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'atitle', 1, 'the coming anarchy', 969082979, 'The coming anarchy')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'the atlantic monthly', 969082979, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'volume', 1, '273', 969082979, '273')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'issue', 1, '2', 969082979, '2')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'date', 1, '1994', 969082979, '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'spage', 1, '44', 969082979, '44')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'issn', 1, '1072-7825', 969082979, '1072-7825')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082979, 'info:sid/google', 'b5cd344ba74fcc47f8fc7be63ced2dee')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082700 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082700, 'test_bd', 'successful', '2015-02-23 18:16:05')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2691
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082700
[1m[36mServiceResponse Exists (2.9ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082700 LIMIT 1[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd503f169b03cbbcfbabdc5364f41ce17' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:16:05', 'biological foundations of language', '1967')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'book', 969082980, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'auinit', 1, 'eh', 969082980, 'EH')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'aulast', 1, 'lenneberg', 969082980, 'Lenneberg')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'biological foundations of language', 969082980, 'Biological foundations of language')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'genre', 1, 'book', 969082980, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'date', 1, '1967', 969082980, '1967')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082980, 'info:sid/google', 'd503f169b03cbbcfbabdc5364f41ce17')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (7.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082701 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082701, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082701 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082701, 'test_bd', 'successful', '2015-02-23 18:16:05')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2692
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082701
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42b027708774547c9fa96aad70f53353' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082981, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'title', 969082981, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'author', 1, 'au', 969082981, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082981, '42b027708774547c9fa96aad70f53353')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082702, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082702 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082702, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082702 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082702, 'test_bd', 'successful', '2015-02-23 18:16:05')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2693[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082702[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '142787d2233f65936d5d10c6f35dcb66' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082982, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'title', 969082982, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'author', 1, 'au', 969082982, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082982, '142787d2233f65936d5d10c6f35dcb66')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082703, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (7.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082703 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082703, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082703 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082703, 'test_bd', 'successful', '2015-02-23 18:16:05')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2694
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082703
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49c8d696ee347e829973764cb4229d96' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082983, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'title', 969082983, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'author', 1, 'au', 969082983, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082983, '49c8d696ee347e829973764cb4229d96')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082704, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082704 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082704 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082704, 'test_bd', 'successful', '2015-02-23 18:16:05')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2695
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082704
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'febbf3c4554a95a58efc761295245370' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:05', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'format', 'journal', 969082984, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'title', 1, 'title', 969082984, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:05', 'author', 1, 'au', 969082984, 'au')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082984, 'febbf3c4554a95a58efc761295245370')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:05', 969082705, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082705, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082705 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:05', NULL, 969082705, 'test_bd', 'successful', '2015-02-23 18:16:05')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:05' WHERE `dispatched_services`.`id` = 2696
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082705
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082705 ORDER BY id ASC[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3c9b12ee7e4986891157bd64023bfca1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:06', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'format', 'journal', 969082985, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'isbn', 1, '9789810743734', 969082985, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082985, '3c9b12ee7e4986891157bd64023bfca1')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082706
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:06', NULL, 969082706, 'test_bd', 'queued', '2015-02-23 18:16:06')
[1m[36m (27.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2697[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082706 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082985)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082985)[0m
[1m[35mServiceResponse Load (7.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082706) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082706)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082706 AND `dispatched_services`.`id` = 2697 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082706, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2697[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082706 LIMIT 1[0m
[1m[35mDispatchedService Load (39.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082985 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082985)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082706 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082706 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082985[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082706[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 407ms (Views: 125.9ms | ActiveRecord: 143.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:16:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4aad4b8e4a17ade8911dcfaa5db76a5f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:06', 'some book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'format', 'book', 969082986, 'book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'genre', 1, 'book', 969082986, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'author', 1, 'smith', 969082986, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'title', 1, 'some book', 969082986, 'Some Book')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:16:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082986, '4aad4b8e4a17ade8911dcfaa5db76a5f')
[1m[36m (13.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082707[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:06', NULL, 969082707, 'BorrowDirect', 'queued', '2015-02-23 18:16:06')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2698
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082707 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082986)[0m
[1m[35mReferentValue Load (1.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082986)
[1m[36mServiceResponse Load (7.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082707) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082707)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082707 AND `dispatched_services`.`id` = 2698 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082707, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2698
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082707 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082986 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082986)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082707 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082707 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082986[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082707[0m
[1m[35m (15.9ms)[0m COMMIT
Completed 200 OK in 249ms (Views: 20.0ms | ActiveRecord: 129.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:16:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '554087b036a786493f0a6cb0b83df82e' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:06', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'format', 'journal', 969082987, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'genre', 1, 'article', 969082987, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'title', 1, 'foo', 969082987, 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:06', 'author', 1, 'bar', 969082987, 'bar')[0m
[1m[35m (23.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:16:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082987, '554087b036a786493f0a6cb0b83df82e')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082708[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:06', NULL, 969082708, 'BorrowDirect', 'queued', '2015-02-23 18:16:06')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2699
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082708 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082987)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082987)
[1m[36mServiceResponse Load (7.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082708) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082708)
[1m[36mDispatchedService Load (2.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082708 AND `dispatched_services`.`id` = 2699 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:06' WHERE `dispatched_services`.`id` = 2699[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082708 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082987 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082987)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (7.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082708 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082708 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082987
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082708
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 235ms (Views: 16.5ms | ActiveRecord: 138.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48e9b1595c2ca1947408c606702b053b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:07', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'format', 'book', 969082988, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'genre', 1, 'book', 969082988, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'title', 1, 'foo', 969082988, 'foo')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:16:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082988, '48e9b1595c2ca1947408c606702b053b')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082709 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:07', NULL, 969082709, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:16:07')
[1m[36m (42.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2700[0m
[1m[35m (45.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082709" for 127.0.0.1 at 2015-02-23 13:16:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082709"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082709 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082988 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082988)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082709[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082709[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082709 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082709[0m [["request_id", 969082709]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082988 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082988)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (8.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082709 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (39.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082709 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082988
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082709
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 118ms (Views: 57.8ms | ActiveRecord: 52.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '36a4223533a91371b3cfc5655b179228' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:07', '9789810743734')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'format', 'journal', 969082989, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'isbn', 1, '9789810743734', 969082989, '9789810743734')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082989, '36a4223533a91371b3cfc5655b179228')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082710
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:07', NULL, 969082710, 'BorrowDirect', 'queued', '2015-02-23 18:16:07')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2701[0m
[1m[35m (24.6ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082989)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989)[0m
[1m[35mServiceResponse Load (7.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082710) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082710)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`id` = 2701 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082710, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (23.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:07', 'Choose your delivery location', 969082710, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2701
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082989 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082710 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082989[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082710[0m
[1m[35m (15.5ms)[0m COMMIT
Completed 200 OK in 299ms (Views: 24.3ms | ActiveRecord: 136.6ms)
Started GET "/borrow_direct/BorrowDirect/969082710?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:16:07 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082710"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082710 ORDER BY id ASC
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2701[0m
[1m[35m (22.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:07', 969082710, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082989 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082710&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 57ms (ActiveRecord: 47.9ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2701
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013904[0m
[1m[35m (24.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082710&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:16:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082710", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:16:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082989 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082710[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082710 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710[0m [["request_id", 969082710]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082989 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082989)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082710 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082710 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082989
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082710
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 82ms (Views: 21.9ms | ActiveRecord: 51.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:16:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '855b09dd1abec014e2cf8ccb2bf0720f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:07', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'format', 'journal', 969082990, 'journal')[0m
[1m[35mSQL (6.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:07', 'isbn', 1, '0109836413', 969082990, '0109836413')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:16:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082990, '855b09dd1abec014e2cf8ccb2bf0720f')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082711
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:07', NULL, 969082711, 'BorrowDirect', 'queued', '2015-02-23 18:16:07')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:07' WHERE `dispatched_services`.`id` = 2702[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082711 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082990)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082990)[0m
[1m[35mServiceResponse Load (8.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082711) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082711)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082711 AND `dispatched_services`.`id` = 2702 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082711, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:08', 'This item is not currently available from BorrowDirect', 969082711, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (33.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2702
[1m[36m (23.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082711 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082990 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082990)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082711 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082711 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082990[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082711[0m
[1m[35m (15.9ms)[0m COMMIT
Completed 200 OK in 377ms (Views: 19.0ms | ActiveRecord: 145.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1f86e77ad432d19bee50dbb99c827a4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:08', '9789810743734')[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:08', 'format', 'journal', 969082991, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:08', 'isbn', 1, '9789810743734', 969082991, '9789810743734')[0m
[1m[35m (36.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082991, 'c1f86e77ad432d19bee50dbb99c827a4')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082712[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:08', NULL, 969082712, 'BorrowDirect', 'queued', '2015-02-23 18:16:08')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2703
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082991)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991)
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082712) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082712)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`id` = 2703 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082712, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:08', 'Choose your delivery location', 969082712, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2703[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082991 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082712 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082991[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082712[0m
[1m[35m (17.9ms)[0m COMMIT
Completed 200 OK in 298ms (Views: 21.1ms | ActiveRecord: 152.6ms)
Started GET "/borrow_direct/BorrowDirect/969082712?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:16:08 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082712"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082712 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2703[0m
[1m[35m (26.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:08', 969082712, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082991 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082712&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 63ms (ActiveRecord: 54.6ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2703
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013909[0m
[1m[35m (14.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082712&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:16:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082712", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:16:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082991 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082712[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082712 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712[0m [["request_id", 969082712]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082991 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082991)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082712 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082712 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082991
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082712
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 18.0ms | ActiveRecord: 50.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '451b1dc5464f38c648a83adf9acec83d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:08', '9789810743734')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:08', 'format', 'journal', 969082992, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:08', 'isbn', 1, '9789810743734', 969082992, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082992, '451b1dc5464f38c648a83adf9acec83d')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082713
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono%20-%20for%20piano%2C%201991&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082696 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono%20-%20for%20piano%2C%201991&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2689[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:08', NULL, 969082713, 'BorrowDirect', 'queued', '2015-02-23 18:16:08')[0m
[1m[35m (24.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013887
[1m[36m (27.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2704[0m
[1m[35m (24.2ms)[0m COMMIT
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082713 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082992)[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082992)
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082713) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082713)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (35.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082713 AND `dispatched_services`.`id` = 2704 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082713, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:08', 'Choose your delivery location', 969082713, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:08' WHERE `dispatched_services`.`id` = 2704[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082713 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082992 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082992)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (7.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082713 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082713 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082713 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082992[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082713[0m
[1m[35m (15.4ms)[0m COMMIT
Completed 200 OK in 344ms (Views: 20.6ms | ActiveRecord: 135.5ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:16:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72b19fc195b70a86ef19829fcc823050' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:09', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'format', 'journal', 969082993, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'isbn', 1, '9789810743734', 969082993, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969082993, '72b19fc195b70a86ef19829fcc823050')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082714[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:09', NULL, 969082714, 'BorrowDirect', 'queued', '2015-02-23 18:16:09')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:09' WHERE `dispatched_services`.`id` = 2705
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969082993)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993)
[1m[36mServiceResponse Load (7.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082714) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082714)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`id` = 2705 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082714, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (6.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:09', 'Choose your delivery location', 969082714, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:16:09' WHERE `dispatched_services`.`id` = 2705[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082993 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082714 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082993[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082714[0m
[1m[35m (16.1ms)[0m COMMIT
Completed 200 OK in 272ms (Views: 20.7ms | ActiveRecord: 123.0ms)
Started GET "/borrow_direct/BorrowDirect/969082714" for 127.0.0.1 at 2015-02-23 13:16:09 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082714"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082714 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:09', 969082714, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (47.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082993 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082714&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 60ms (ActiveRecord: 54.0ms)
Started GET "/resolve?umlaut.request_id=969082714&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:16:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082714", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:16:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082993 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (44.7ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082714
[1m[36m (28.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 [["request_id", 969082714]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969082993 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969082993)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082714 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082714 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082714 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969082993
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082714
[1m[36m (62.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 187ms (Views: 22.3ms | ActiveRecord: 155.3ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88b0e7d49b1a71991536f5758a49f448' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:09', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'format', 'journal', 969082994, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'isbn', 1, '9789810743734', 969082994, '9789810743734')
[1m[36m (33.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082994, '88b0e7d49b1a71991536f5758a49f448')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mServiceResponse Load (7.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082715 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082715, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:09', 'Choose your delivery location', 969082715, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082715 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:09', NULL, 969082715, 'test_bd', 'successful', '2015-02-23 18:16:09')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:09' WHERE `dispatched_services`.`id` = 2706[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082715[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43324c37ecec92b30163fa1df9dbb028' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:09', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'format', 'journal', 969082995, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'isbn', 1, '0109836413', 969082995, '0109836413')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:16:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082995, '43324c37ecec92b30163fa1df9dbb028')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082716 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082716, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:09', 'This item is not currently available from BorrowDirect', 969082716, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (30.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082716 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:09', NULL, 969082716, 'test_bd', 'successful', '2015-02-23 18:16:09')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:09' WHERE `dispatched_services`.`id` = 2707[0m
[1m[35m (24.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082716[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96b1111323fe604dec94d064446800b4' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:09', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'format', 'journal', 969082996, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:09', 'isbn', 1, '000000000', 969082996, '000000000')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:16:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082996, '96b1111323fe604dec94d064446800b4')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (7.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082717 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082717, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:10', 'This item is not currently available from BorrowDirect', 969082717, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082717 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:10', NULL, 969082717, 'test_bd', 'successful', '2015-02-23 18:16:10')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:10' WHERE `dispatched_services`.`id` = 2708[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082717[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5042bb7bd371e270ef6c840188fad5d5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:10', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:10', 'format', 'journal', 969082997, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:10', 'isbn', 1, '9789810743734', 969082997, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082997, '5042bb7bd371e270ef6c840188fad5d5')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082718 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082718, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082718 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:10', NULL, 969082718, 'test_bd', 'failed_temporary', '2015-02-23 18:16:10')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:16:10' WHERE `dispatched_services`.`id` = 2709
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082718
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0abf70616098246e36fc2222d8d822d6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:10', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:10', 'format', 'journal', 969082998, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:10', 'isbn', 1, '9789810743734', 969082998, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082998, '0abf70616098246e36fc2222d8d822d6')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082719 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082719, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082719 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:10', NULL, 969082719, 'test_bd', 'successful', '2015-02-23 18:16:10')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:10' WHERE `dispatched_services`.`id` = 2710[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082719[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.6ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae407747f239f39275c111c76efc6e0e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:52', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'format', 'journal', 969082999, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'isbn', 1, '9789810743734', 969082999, '9789810743734')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969082999, 'ae407747f239f39275c111c76efc6e0e')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082720 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082720, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082720 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:52', NULL, 969082720, 'test_bd', 'successful', '2015-02-23 18:16:52')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:52' WHERE `dispatched_services`.`id` = 2711
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082720
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '575632c0d2a3bf9958f9970a1e2dde75' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:52', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'format', 'journal', 969083000, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'title', 1, 'title', 969083000, 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'author', 1, 'au', 969083000, 'au')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083000, '575632c0d2a3bf9958f9970a1e2dde75')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:52', 969082721, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082721 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082721, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082721 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:52', NULL, 969082721, 'test_bd', 'successful', '2015-02-23 18:16:52')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:52' WHERE `dispatched_services`.`id` = 2712[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082721[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e79caf867bc217145e8b71dd4aa735fa' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:52', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'format', 'journal', 969083001, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'title', 1, 'title', 969083001, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'author', 1, 'au', 969083001, 'au')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083001, 'e79caf867bc217145e8b71dd4aa735fa')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:52', 969082722, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082722 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082722 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:52', NULL, 969082722, 'test_bd', 'successful', '2015-02-23 18:16:52')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:52' WHERE `dispatched_services`.`id` = 2713[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082722[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f059254f680520804e69088c20b0ee37' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:52', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'format', 'journal', 969083002, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'title', 1, 'title', 969083002, 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:52', 'author', 1, 'au', 969083002, 'au')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:16:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083002, 'f059254f680520804e69088c20b0ee37')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:52', 969082723, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (7.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082723 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082723, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082723 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:52', NULL, 969082723, 'test_bd', 'successful', '2015-02-23 18:16:52')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:52' WHERE `dispatched_services`.`id` = 2714
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082723
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 45ms (Views: 44.4ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04be4333a7464595fd79364f2b4b584a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083003, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083003, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083003, '04be4333a7464595fd79364f2b4b584a')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082724"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082724 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082724 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969082724
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082724, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082724\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083003 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083003)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082724&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 40ms (ActiveRecord: 26.9ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49ead19938a9241ac5116125a95d5cf6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083004, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083004, '121212')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083004, '49ead19938a9241ac5116125a95d5cf6')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082725, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082725"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082725 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082725 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013930
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082725, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013930\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083004 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083004)
Redirected to http://test.host/resolve?umlaut.request_id=969082725&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 35ms (ActiveRecord: 27.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '077ce92e6f461deabf8144c67515147a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083005, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083005, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083005, '077ce92e6f461deabf8144c67515147a')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082726, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082726"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082726 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082726 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082726 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:53', NULL, 969082726, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:53')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2715
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082726, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083005 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083005)
Redirected to http://test.host/resolve?umlaut.request_id=969082726&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 83ms (ActiveRecord: 72.1ms)
[1m[36mDispatchedService Load (4.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082726[0m
[1m[35mServiceResponse Load (7.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082726 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082726 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2715[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013933
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63de37fdb7454075b80962eae818043b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083006, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083006, '121212')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083006, '63de37fdb7454075b80962eae818043b')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082727, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082727"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082727 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082727 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082727 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:53', NULL, 969082727, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:53')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2716[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.6ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082727, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083006 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083006)[0m
Redirected to http://example.org
Completed 302 Found in 83ms (ActiveRecord: 69.3ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f1c5595da4d8bbfd9cd09a0c83fe6eec' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083007, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083007, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083007, 'f1c5595da4d8bbfd9cd09a0c83fe6eec')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082728, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082728"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082728 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082728 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082728 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:53', NULL, 969082728, 'BorrowDirect', 'in_progress', '2015-02-23 18:16:53')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2717[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082728, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083007 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083007)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 72ms (Views: 0.3ms | ActiveRecord: 61.8ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a252468cae2c2b1701fb972ecc7f464' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mDispatchedService Load (4.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082728 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:16:53', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083008, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'isbn', 1, '121212', 969083008, '121212')
[1m[36mSQL (7.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2717[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013937
[1m[36m (24.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083008, '2a252468cae2c2b1701fb972ecc7f464')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082729"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082729 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082729 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:16:53', 969082729, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083008 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083008)
Redirected to http://test.host/resolve?umlaut.request_id=969082729&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A16%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.7ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f94f3a1d5a366febcb98befa9e649e37' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:16:53', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083009, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'auinit', 1, 'rd', 969083009, 'RD')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'aulast', 1, 'kaplan', 969083009, 'Kaplan')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'atitle', 1, 'the coming anarchy', 969083009, 'The coming anarchy')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'title', 1, 'the atlantic monthly', 969083009, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'volume', 1, '273', 969083009, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'issue', 1, '2', 969083009, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'date', 1, '1994', 969083009, '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'spage', 1, '44', 969083009, '44')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'issn', 1, '1072-7825', 969083009, '1072-7825')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:16:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083009, 'info:sid/google', 'f94f3a1d5a366febcb98befa9e649e37')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082730 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:16:53', NULL, 969082730, 'test_bd', 'successful', '2015-02-23 18:16:53')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:16:53' WHERE `dispatched_services`.`id` = 2718[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082730[0m
[1m[35mServiceResponse Exists (2.9ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082730 LIMIT 1
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '692b61af5bb22fba4c558a5577f696a4' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:16:53', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'format', 'journal', 969083010, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083010, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:16:53', 'aulast', 1, 'grimes', 969083010, 'Grimes')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:16:54', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083010, '692b61af5bb22fba4c558a5577f696a4')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:16:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082731, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082731 ORDER BY id ASC
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 52ms (Views: 42.1ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 35ms (Views: 0.4ms | ActiveRecord: 6.7ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '596e16e810ff0c999fc900a512537969' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083011, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083011, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083011, '596e16e810ff0c999fc900a512537969')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082732"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082732 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082732 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082732
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082732, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082732\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083011 LIMIT 1[0m
[1m[35mReferentValue Load (1.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083011)
Redirected to http://test.host/resolve?umlaut.request_id=969082732&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 92ms (ActiveRecord: 35.2ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5499a37a6710ef868be7f7332ea3c102' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083012, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083012, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083012, '5499a37a6710ef868be7f7332ea3c102')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082733, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082733"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082733 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082733 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070013941
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082733, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070013941\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083012 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083012)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082733&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 36ms (ActiveRecord: 29.8ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e9a50e10cee59f163c3905fc09b4511' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083013, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083013, '121212')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083013, '4e9a50e10cee59f163c3905fc09b4511')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082734, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082734"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082734 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082734 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:28', NULL, 969082734, 'BorrowDirect', 'in_progress', '2015-02-23 18:17:28')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2719[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082734, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083013 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083013)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082734&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 89ms (ActiveRecord: 67.7ms)
[1m[35mDispatchedService Load (4.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082734
[1m[36mServiceResponse Load (8.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082734 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2719
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013944[0m
[1m[35m (14.4ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a8ea4c3dccf1b7c223e9100203eca60d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083014, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083014, '121212')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083014, 'a8ea4c3dccf1b7c223e9100203eca60d')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082735, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082735"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082735 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (7.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082735 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082735 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:28', NULL, 969082735, 'BorrowDirect', 'in_progress', '2015-02-23 18:17:28')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2720
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082735, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083014 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083014)
Redirected to http://example.org
Completed 302 Found in 77ms (ActiveRecord: 65.6ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082735 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mRequest Load (3.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a07617fc5803277e4aec5a93a509659' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (3.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2720[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083015, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083015, '121212')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013946[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083015, '4a07617fc5803277e4aec5a93a509659')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082736, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082736"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082736 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082736 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082736 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:28', NULL, 969082736, 'BorrowDirect', 'in_progress', '2015-02-23 18:17:28')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2721[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082736, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083015 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083015)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 61.2ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb43cd5850160203cfc28bbd586dc578' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mDispatchedService Load (3.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082736 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:28', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'format', 'journal', 969083016, 'journal')[0m
[1m[35mSQL (2.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:17:28' WHERE `dispatched_services`.`id` = 2721
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:28', 'isbn', 1, '121212', 969083016, '121212')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013948
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:17:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083016, 'fb43cd5850160203cfc28bbd586dc578')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082737"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082737 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082737 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:28', 969082737, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083016 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083016)
Redirected to http://test.host/resolve?umlaut.request_id=969082737&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A29-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 35ms (ActiveRecord: 28.8ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b78a227b3db10fc80c407540eca59042' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083017, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'title', 969083017, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'author', 1, 'au', 969083017, 'au')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083017, 'b78a227b3db10fc80c407540eca59042')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:29', 969082738, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082738, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082738 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082738, 'test_bd', 'successful', '2015-02-23 18:17:29')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2722
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082738
[1m[36mServiceResponse Load (7.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082738 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62e9746eac1122c1ab528b5b825aedd6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083018, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'title', 969083018, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'author', 1, 'au', 969083018, 'au')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083018, '62e9746eac1122c1ab528b5b825aedd6')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:29', 969082739, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mServiceResponse Load (7.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082739 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082739 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082739, 'test_bd', 'successful', '2015-02-23 18:17:29')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2723[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082739[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '557c228402c653e8312e859a297c5585' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083019, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'title', 969083019, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'author', 1, 'au', 969083019, 'au')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083019, '557c228402c653e8312e859a297c5585')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:29', 969082740, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (7.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082740 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082740, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082740 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082740, 'test_bd', 'successful', '2015-02-23 18:17:29')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2724
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082740
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9fb7a0a236cac481cf725f736ab34ad8' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083020, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'title', 969083020, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'author', 1, 'au', 969083020, 'au')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083020, '9fb7a0a236cac481cf725f736ab34ad8')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:29', 969082741, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082741 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082741, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082741 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082741, 'test_bd', 'successful', '2015-02-23 18:17:29')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2725[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082741[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76dbf1b7d4075dd06b23ec6f57474c86' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:17:29', 'biological foundations of language', '1967')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'book', 969083021, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'auinit', 1, 'eh', 969083021, 'EH')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'aulast', 1, 'lenneberg', 969083021, 'Lenneberg')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'biological foundations of language', 969083021, 'Biological foundations of language')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'genre', 1, 'book', 969083021, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'date', 1, '1967', 969083021, '1967')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083021, 'info:sid/google', '76dbf1b7d4075dd06b23ec6f57474c86')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (7.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082742 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082742, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082742 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082742, 'test_bd', 'successful', '2015-02-23 18:17:29')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2726
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082742
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb9deffbc32b254049bd4b049cdf1353' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:17:29', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083022, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'auinit', 1, 'rd', 969083022, 'RD')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'aulast', 1, 'kaplan', 969083022, 'Kaplan')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'atitle', 1, 'the coming anarchy', 969083022, 'The coming anarchy')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'the atlantic monthly', 969083022, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'volume', 1, '273', 969083022, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'issue', 1, '2', 969083022, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'date', 1, '1994', 969083022, '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'spage', 1, '44', 969083022, '44')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'issn', 1, '1072-7825', 969083022, '1072-7825')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083022, 'info:sid/google', 'fb9deffbc32b254049bd4b049cdf1353')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082743 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082743, 'test_bd', 'successful', '2015-02-23 18:17:29')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2727[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082743[0m
[1m[35mServiceResponse Exists (3.1ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082743 LIMIT 1
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '436c4ed61191fb4331c7438e67d806f5' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:29', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083023, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083023, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'aulast', 1, 'grimes', 969083023, 'Grimes')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083023, '436c4ed61191fb4331c7438e67d806f5')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082744, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (7.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082744 ORDER BY id ASC
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3caf759eb292c3563f9f8910e71a6cfe' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:29', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083024, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'isbn', 1, '9789810743734', 969083024, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083024, '3caf759eb292c3563f9f8910e71a6cfe')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (10.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082745 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:29', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082745, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082745 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:29', NULL, 969082745, 'test_bd', 'successful', '2015-02-23 18:17:29')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:29' WHERE `dispatched_services`.`id` = 2728[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082745[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '92c407ef7e6031d3170dd772652d9313' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:29', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'format', 'journal', 969083025, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:29', 'isbn', 1, '9789810743734', 969083025, '9789810743734')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:29', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083025, '92c407ef7e6031d3170dd772652d9313')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mServiceResponse Load (9.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082746 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082746, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:30', 'Choose your delivery location', 969082746, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082746 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082746, 'test_bd', 'successful', '2015-02-23 18:17:30')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2729[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082746[0m
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a7d27647d51a021f8b43029956e378dc' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:30', '000000000')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'journal', 969083026, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'isbn', 1, '000000000', 969083026, '000000000')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:17:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083026, 'a7d27647d51a021f8b43029956e378dc')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082747 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082747, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:30', 'This item is not currently available from BorrowDirect', 969082747, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082747 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082747, 'test_bd', 'successful', '2015-02-23 18:17:30')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2730[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082747[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53a3737d11216dc20b343e4be368530a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:30', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'journal', 969083027, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'isbn', 1, '0109836413', 969083027, '0109836413')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:17:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083027, '53a3737d11216dc20b343e4be368530a')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mServiceResponse Load (8.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082748 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082748, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:30', 'This item is not currently available from BorrowDirect', 969082748, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082748 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082748, 'test_bd', 'successful', '2015-02-23 18:17:30')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2731[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082748[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '429db24d1b5af194e73d804efce06830' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:30', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'journal', 969083028, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'isbn', 1, '9789810743734', 969083028, '9789810743734')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (9.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:30', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083028, '429db24d1b5af194e73d804efce06830')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (7.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082749 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082749, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082749 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082749, 'test_bd', 'failed_temporary', '2015-02-23 18:17:30')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2732
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082749
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a67d4a65d08ae1571821285183ca084' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:30', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'journal', 969083029, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'isbn', 1, '9789810743734', 969083029, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083029, '8a67d4a65d08ae1571821285183ca084')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082750[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082750[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082750, 'test_bd', 'queued', '2015-02-23 18:17:30')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2733
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082750 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083029)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083029)
[1m[36mServiceResponse Load (7.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082750) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082750)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082750 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082750 AND `dispatched_services`.`id` = 2733 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:30', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082750, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[31mUmlaut: Threaded service raised exception.[0m Service: test_bd, VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/available
Body: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/integration/BD_timeout_displays_error_with_search_link.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in `find_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in `find'
umlaut_borrow_direct app/service_adaptors/borrow_direct_adaptor.rb:73:in `handle'
umlaut app/service_adaptors/service.rb:92:in `handle_wrapper'
umlaut app/models/service_wave.rb:88:in `block (2 levels) in handle'
Completed 500 Internal Server Error in 198ms
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:17:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a40df78e0fc8b894eb37523e35acca2' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:30', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'format', 'book', 969083030, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'genre', 1, 'book', 969083030, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'author', 1, 'smith', 969083030, 'Smith')[0m
[1m[35mSQL (8.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:30', 'title', 1, 'some book', 969083030, 'Some Book')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:17:30', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083030, '8a40df78e0fc8b894eb37523e35acca2')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082751
[1m[36m (66.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:30', NULL, 969082751, 'BorrowDirect', 'queued', '2015-02-23 18:17:30')
[1m[36m (53.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:30' WHERE `dispatched_services`.`id` = 2734[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082751 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083030)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083030)[0m
[1m[35mServiceResponse Load (7.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082751) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082751)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (28.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082751 AND `dispatched_services`.`id` = 2734 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082751, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (36.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2734[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082751 LIMIT 1[0m
[1m[35mDispatchedService Load (7.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083030 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083030)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms)
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082751 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082751 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083030[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082751[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 473ms (Views: 91.9ms | ActiveRecord: 227.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:17:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53911d556440ba688587c49a54b983df' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (6.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:31', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'format', 'journal', 969083031, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'genre', 1, 'article', 969083031, 'article')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'title', 1, 'foo', 969083031, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'author', 1, 'bar', 969083031, 'bar')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:17:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083031, '53911d556440ba688587c49a54b983df')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082752[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:31', NULL, 969082752, 'BorrowDirect', 'queued', '2015-02-23 18:17:31')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2735
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082752 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083031)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083031)
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082752) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082752)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082752 AND `dispatched_services`.`id` = 2735 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2735[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082752 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083031 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083031)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (8.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082752 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082752 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083031
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (18.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082752
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 234ms (Views: 17.3ms | ActiveRecord: 140.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '98a32fe08c23580da0310dc57d6f39b5' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:17:31', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'format', 'book', 969083032, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'genre', 1, 'book', 969083032, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'title', 1, 'foo', 969083032, 'foo')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:17:31', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083032, '98a32fe08c23580da0310dc57d6f39b5')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082753 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:31', NULL, 969082753, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:17:31')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2736[0m
[1m[35m (14.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082753" for 127.0.0.1 at 2015-02-23 13:17:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082753"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082753 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083032 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083032)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082753[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082753[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082753 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082753[0m [["request_id", 969082753]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083032 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083032)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (8.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082753 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082753 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083032
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082753
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 79ms (Views: 18.9ms | ActiveRecord: 52.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '91321373fa6bd57211f0b2ca88d3f836' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:31', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'format', 'journal', 969083033, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:31', 'isbn', 1, '9789810743734', 969083033, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083033, '91321373fa6bd57211f0b2ca88d3f836')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082754
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:31', NULL, 969082754, 'BorrowDirect', 'queued', '2015-02-23 18:17:31')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2737[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083033)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033)[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082754) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082754)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`id` = 2737 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082754, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:31', 'Choose your delivery location', 969082754, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:31' WHERE `dispatched_services`.`id` = 2737
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083033 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082754 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083033
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082754
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 265ms (Views: 24.9ms | ActiveRecord: 120.0ms)
Started GET "/borrow_direct/BorrowDirect/969082754?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:17:32 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082754"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082754 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2737
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:32', 969082754, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083033 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082754&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 38.8ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2737[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013971
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082754&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:17:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082754", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:17:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083033 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082754
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082754 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 [["request_id", 969082754]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083033 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083033)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082754 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082754 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083033[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082754[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 21.0ms | ActiveRecord: 51.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:17:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8960ffa9ef6693693acff8399394fbd3' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:32', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:32', 'format', 'journal', 969083034, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:32', 'isbn', 1, '0109836413', 969083034, '0109836413')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:17:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083034, '8960ffa9ef6693693acff8399394fbd3')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082755[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:32', NULL, 969082755, 'BorrowDirect', 'queued', '2015-02-23 18:17:32')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2738
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082755 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083034)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083034)
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082755) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082755)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082755 AND `dispatched_services`.`id` = 2738 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082755, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:32', 'This item is not currently available from BorrowDirect', 969082755, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2738[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082755 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083034 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083034)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082755 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082755 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083034
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082755
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 256ms (Views: 20.5ms | ActiveRecord: 118.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '345a03ad949f262e5b737a7098664ed4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:32', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:32', 'format', 'journal', 969083035, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:32', 'isbn', 1, '9789810743734', 969083035, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083035, '345a03ad949f262e5b737a7098664ed4')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082756
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:32', NULL, 969082756, 'BorrowDirect', 'queued', '2015-02-23 18:17:32')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2739[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083035)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035)[0m
[1m[35mServiceResponse Load (7.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082756) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082756)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`id` = 2739 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082756, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:32', 'Choose your delivery location', 969082756, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2739
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083035 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082756 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083035
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082756
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 302ms (Views: 21.3ms | ActiveRecord: 118.0ms)
Started GET "/borrow_direct/BorrowDirect/969082756?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:17:32 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082756"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082756 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2739
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (6.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:32', 969082756, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083035 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082756&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 52ms (ActiveRecord: 43.7ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:32' WHERE `dispatched_services`.`id` = 2739[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013976
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082756&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:17:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082756", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:17:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083035 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082756
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082756 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 [["request_id", 969082756]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083035 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083035)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082756 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082756 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083035[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082756[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 17.4ms | ActiveRecord: 50.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2262c750b8b4ab5db2e0ad4b12c069e2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:33', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:33', 'format', 'journal', 969083036, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:33', 'isbn', 1, '9789810743734', 969083036, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083036, '2262c750b8b4ab5db2e0ad4b12c069e2')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082757[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (12.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:33', NULL, 969082757, 'BorrowDirect', 'queued', '2015-02-23 18:17:33')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:33' WHERE `dispatched_services`.`id` = 2740
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082757 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083036)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083036)
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082757) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082757)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082757 AND `dispatched_services`.`id` = 2740 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082757, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:33', 'Choose your delivery location', 969082757, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:33' WHERE `dispatched_services`.`id` = 2740[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082757 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083036 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083036)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082757 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082757 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082757 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083036[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082757[0m
[1m[35m (14.1ms)[0m COMMIT
Completed 200 OK in 268ms (Views: 21.0ms | ActiveRecord: 129.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e168673733aaf0c9512dc716b1b0c97' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:33', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:33', 'format', 'journal', 969083037, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:33', 'isbn', 1, '9789810743734', 969083037, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083037, '5e168673733aaf0c9512dc716b1b0c97')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082758[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:33', NULL, 969082758, 'BorrowDirect', 'queued', '2015-02-23 18:17:33')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:33' WHERE `dispatched_services`.`id` = 2741
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083037)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037)
[1m[36mServiceResponse Load (8.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082758) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082758)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`id` = 2741 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082758, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:33', 'Choose your delivery location', 969082758, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:17:33' WHERE `dispatched_services`.`id` = 2741[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083037 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082758 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083037[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082758[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 259ms (Views: 21.1ms | ActiveRecord: 119.1ms)
Started GET "/borrow_direct/BorrowDirect/969082758" for 127.0.0.1 at 2015-02-23 13:17:33 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082758"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082758 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:33', 969082758, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083037 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082758&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 19.9ms)
Started GET "/resolve?umlaut.request_id=969082758&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A17%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:17:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082758", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:17:33-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083037 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082758
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 [["request_id", 969082758]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083037 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083037)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082758 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082758 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082758 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083037
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082758
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 79ms (Views: 21.3ms | ActiveRecord: 49.3ms)
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.9ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.9ms)[0m [1mROLLBACK[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '655cfb232eabfb45ad952743f6ef784a' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:58', '000000000')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:58', 'format', 'journal', 969083038, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:58', 'isbn', 1, '000000000', 969083038, '000000000')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:17:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083038, '655cfb232eabfb45ad952743f6ef784a')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mServiceResponse Load (9.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082759 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082759, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:59', 'This item is not currently available from BorrowDirect', 969082759, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082759 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082759, 'test_bd', 'successful', '2015-02-23 18:17:59')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:59' WHERE `dispatched_services`.`id` = 2742[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082759[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7312a5a4befc48b5eae5557c46887415' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:59', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'format', 'journal', 969083039, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'isbn', 1, '0109836413', 969083039, '0109836413')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:17:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083039, '7312a5a4befc48b5eae5557c46887415')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082760 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082760, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:59', 'This item is not currently available from BorrowDirect', 969082760, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082760 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082760, 'test_bd', 'successful', '2015-02-23 18:17:59')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:59' WHERE `dispatched_services`.`id` = 2743[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082760[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '966fcebe915570e74d859b22fc5d2f57' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:59', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'format', 'journal', 969083040, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'isbn', 1, '9789810743734', 969083040, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083040, '966fcebe915570e74d859b22fc5d2f57')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082761 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082761, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:17:59', 'Choose your delivery location', 969082761, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082761 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082761, 'test_bd', 'successful', '2015-02-23 18:17:59')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:17:59' WHERE `dispatched_services`.`id` = 2744[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082761[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b724e06484278640b85bcd251728388d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:59', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'format', 'journal', 969083041, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'isbn', 1, '9789810743734', 969083041, '9789810743734')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083041, 'b724e06484278640b85bcd251728388d')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mServiceResponse Load (9.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082762 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:17:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082762, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082762 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082762, 'test_bd', 'failed_temporary', '2015-02-23 18:17:59')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:17:59' WHERE `dispatched_services`.`id` = 2745
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082762
[1m[36m (0.9ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.8ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (1.0ms)[0m ROLLBACK
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:17:59 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa7a2cf84a3231eaba11d8d2eeca14ad' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:17:59', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'format', 'journal', 969083042, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:17:59', 'isbn', 1, '9789810743734', 969083042, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:17:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083042, 'fa7a2cf84a3231eaba11d8d2eeca14ad')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082763[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:17:59', NULL, 969082763, 'test_bd', 'queued', '2015-02-23 18:17:59')[0m
[1m[35m (21.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2746
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082763 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083042)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083042)
[1m[36mServiceResponse Load (8.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082763) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082763)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082763 AND `dispatched_services`.`id` = 2746 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082763, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2746
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082763 LIMIT 1
[1m[36mDispatchedService Load (7.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083042 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083042)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (9.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082763 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (12.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (36.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082763 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (101.3ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083042
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082763
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 464ms (Views: 139.0ms | ActiveRecord: 133.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:18:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'edf46a801b0eb476367ee89cfdc74f2a' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:00', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'format', 'book', 969083043, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'genre', 1, 'book', 969083043, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'author', 1, 'smith', 969083043, 'Smith')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'title', 1, 'some book', 969083043, 'Some Book')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:18:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083043, 'edf46a801b0eb476367ee89cfdc74f2a')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082764
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:00', NULL, 969082764, 'BorrowDirect', 'queued', '2015-02-23 18:18:00')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2747[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082764 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083043)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083043)[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082764) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082764)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082764 AND `dispatched_services`.`id` = 2747 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082764, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2747[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082764 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083043 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083043)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082764 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082764 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083043
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082764
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 246ms (Views: 19.1ms | ActiveRecord: 131.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:18:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd257a2ab08d29612fed02514c4c58f4b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:00', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'format', 'journal', 969083044, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'genre', 1, 'article', 969083044, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'title', 1, 'foo', 969083044, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'author', 1, 'bar', 969083044, 'bar')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:18:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083044, 'd257a2ab08d29612fed02514c4c58f4b')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082765
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:00', NULL, 969082765, 'BorrowDirect', 'queued', '2015-02-23 18:18:00')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2748[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082765 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083044)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083044)[0m
[1m[35mServiceResponse Load (7.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082765) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082765)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082765 AND `dispatched_services`.`id` = 2748 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2748
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082765 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083044 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083044)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (9.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082765 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082765 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083044[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082765[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 211ms (Views: 16.3ms | ActiveRecord: 120.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8f61da96f80d76ad356bf9d3972785b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:00', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'format', 'book', 969083045, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'genre', 1, 'book', 969083045, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:00', 'title', 1, 'foo', 969083045, 'foo')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:18:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083045, 'f8f61da96f80d76ad356bf9d3972785b')[0m
[1m[35m (40.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082766 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:00', NULL, 969082766, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:18:00')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:00' WHERE `dispatched_services`.`id` = 2749
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082766" for 127.0.0.1 at 2015-02-23 13:18:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082766"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082766 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083045 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083045)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082766
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082766
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082766 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082766 [["request_id", 969082766]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083045 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083045)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (7.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082766 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082766 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083045[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082766[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 18.9ms | ActiveRecord: 50.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:18:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e27ca6a012a74b2e5eb2d81c1c282803' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:01', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'format', 'journal', 969083046, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'isbn', 1, '9789810743734', 969083046, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083046, 'e27ca6a012a74b2e5eb2d81c1c282803')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082767[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:01', NULL, 969082767, 'BorrowDirect', 'queued', '2015-02-23 18:18:01')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2750
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083046)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046)
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082767) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082767)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`id` = 2750 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082767, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:01', 'Choose your delivery location', 969082767, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2750[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083046 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082767 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083046[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082767[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 302ms (Views: 23.8ms | ActiveRecord: 118.7ms)
Started GET "/borrow_direct/BorrowDirect/969082767?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:18:01 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082767"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082767 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2750[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:01', 969082767, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083046 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082767&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 53ms (ActiveRecord: 37.9ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (45.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2750
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070013993[0m
[1m[35m (36.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082767&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:18:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082767", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:18:01-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083046 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082767[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082767 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767[0m [["request_id", 969082767]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083046 LIMIT 1
[1m[36mReferentValue Load (0.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083046)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082767 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082767 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083046
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082767
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 80ms (Views: 21.1ms | ActiveRecord: 49.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:18:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cc18578aaa6f789fb7a578914d64a1d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:01', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'format', 'journal', 969083047, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'isbn', 1, '0109836413', 969083047, '0109836413')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:18:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083047, '8cc18578aaa6f789fb7a578914d64a1d')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082768
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:01', NULL, 969082768, 'BorrowDirect', 'queued', '2015-02-23 18:18:01')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2751[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082768 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083047)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083047)[0m
[1m[35mServiceResponse Load (8.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082768) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082768)[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082768 AND `dispatched_services`.`id` = 2751 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082768, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:01', 'This item is not currently available from BorrowDirect', 969082768, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:01' WHERE `dispatched_services`.`id` = 2751
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082768 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083047 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083047)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082768 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082768 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083047[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082768[0m
[1m[35m (18.8ms)[0m COMMIT
Completed 200 OK in 279ms (Views: 20.0ms | ActiveRecord: 123.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:18:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa43e13f5fff9f7808055583e04cb779' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:01', '9789810743734')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'format', 'journal', 969083048, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:01', 'isbn', 1, '9789810743734', 969083048, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083048, 'fa43e13f5fff9f7808055583e04cb779')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082769[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mDispatchedService Load (2.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:02', NULL, 969082769, 'BorrowDirect', 'queued', '2015-02-23 18:18:02')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (43.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2752
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1
[1m[36mReferent Load (1.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083048)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048)
[1m[36mServiceResponse Load (8.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082769) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082769)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`id` = 2752 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082769, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:02', 'Choose your delivery location', 969082769, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (23.2ms)[0m COMMIT
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2752[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083048 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082769 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083048[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082769[0m
[1m[35m (19.8ms)[0m COMMIT
Completed 200 OK in 333ms (Views: 21.3ms | ActiveRecord: 176.9ms)
Started GET "/borrow_direct/BorrowDirect/969082769?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:18:02 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082769"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082769 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2752[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:02', 969082769, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083048 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082769&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 55ms (ActiveRecord: 39.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2752
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070013998[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082769&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:18:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082769", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:18:02-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083048 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048)[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082769[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082769 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769[0m [["request_id", 969082769]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083048 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083048)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082769 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082769 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083048
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082769
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 88ms (Views: 17.9ms | ActiveRecord: 60.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:18:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ce2721bbf1c8de37ae8000d7ea31ac2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:02', '9789810743734')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:02', 'format', 'journal', 969083049, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:02', 'isbn', 1, '9789810743734', 969083049, '9789810743734')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083049, '0ce2721bbf1c8de37ae8000d7ea31ac2')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082770
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:02', NULL, 969082770, 'BorrowDirect', 'queued', '2015-02-23 18:18:02')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2753[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082770 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083049)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083049)[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082770) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082770)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082770 AND `dispatched_services`.`id` = 2753 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082770, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:02', 'Choose your delivery location', 969082770, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2753
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082770 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083049 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083049)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082770 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082770 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082770 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083049
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082770
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 262ms (Views: 20.8ms | ActiveRecord: 117.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:18:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'feef9a4248aad1296d19db5869a9847c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:02', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:02', 'format', 'journal', 969083050, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:02', 'isbn', 1, '9789810743734', 969083050, '9789810743734')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083050, 'feef9a4248aad1296d19db5869a9847c')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082771
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:02', NULL, 969082771, 'BorrowDirect', 'queued', '2015-02-23 18:18:02')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:02' WHERE `dispatched_services`.`id` = 2754[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083050)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050)[0m
[1m[35mServiceResponse Load (8.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082771) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082771)[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (22.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`id` = 2754 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082771, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:02', 'Choose your delivery location', 969082771, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2754
[1m[36m (23.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.0ms)
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083050 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082771 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083050
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082771
[1m[36m (41.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 353ms (Views: 22.3ms | ActiveRecord: 150.3ms)
Started GET "/borrow_direct/BorrowDirect/969082771" for 127.0.0.1 at 2015-02-23 13:18:03 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082771"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082771 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:03', 969082771, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083050 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082771&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 26.3ms)
Started GET "/resolve?umlaut.request_id=969082771&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:18:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082771", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:18:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083050 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082771[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771[0m [["request_id", 969082771]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083050 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083050)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082771 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082771 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082771 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083050[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082771[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 83ms (Views: 21.9ms | ActiveRecord: 51.9ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29431e1499cd6ea3b5290acfc3180e07' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:03', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083051, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'isbn', 1, '9789810743734', 969083051, '9789810743734')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083051, '29431e1499cd6ea3b5290acfc3180e07')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082772 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082772, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082772 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082772, 'test_bd', 'successful', '2015-02-23 18:18:03')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2755[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082772[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fb5e7bcd732ff30ed7e519ba7053f785' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:03', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083052, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'title', 969083052, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'author', 1, 'au', 969083052, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083052, 'fb5e7bcd732ff30ed7e519ba7053f785')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:03', 969082773, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082773 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082773 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082773, 'test_bd', 'successful', '2015-02-23 18:18:03')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2756[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082773[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd8e01992f749027db9a176a0a03878d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:03', 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083053, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'title', 969083053, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'author', 1, 'au', 969083053, 'au')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083053, 'bd8e01992f749027db9a176a0a03878d')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:03', 969082774, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082774 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082774, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082774 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082774, 'test_bd', 'successful', '2015-02-23 18:18:03')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2757
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082774
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d69b59c031f44a8e5311755af064ab3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:03', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083054, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'title', 969083054, 'title')[0m
[1m[35mSQL (6.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'author', 1, 'au', 969083054, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083054, '4d69b59c031f44a8e5311755af064ab3')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:03', 969082775, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082775 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082775, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082775 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082775, 'test_bd', 'successful', '2015-02-23 18:18:03')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2758[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082775[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd432da67102215bce80a60af59f39a8f' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:03', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083055, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083055, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'aulast', 1, 'grimes', 969083055, 'Grimes')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083055, 'd432da67102215bce80a60af59f39a8f')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082776, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082776 ORDER BY id ASC[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e185561d7471bc51d4a6766a6461bb2f' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:18:03', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'format', 'journal', 969083056, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'auinit', 1, 'rd', 969083056, 'RD')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'aulast', 1, 'kaplan', 969083056, 'Kaplan')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'atitle', 1, 'the coming anarchy', 969083056, 'The coming anarchy')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'title', 1, 'the atlantic monthly', 969083056, 'The Atlantic monthly')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'volume', 1, '273', 969083056, '273')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'issue', 1, '2', 969083056, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'date', 1, '1994', 969083056, '1994')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'spage', 1, '44', 969083056, '44')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:03', 'issn', 1, '1072-7825', 969083056, '1072-7825')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:18:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083056, 'info:sid/google', 'e185561d7471bc51d4a6766a6461bb2f')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082777 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:03', NULL, 969082777, 'test_bd', 'successful', '2015-02-23 18:18:03')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:03' WHERE `dispatched_services`.`id` = 2759
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082777
[1m[36mServiceResponse Exists (3.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082777 LIMIT 1[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49f66163316bd3e0a0f8b45272eacb5a' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:18:04', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'book', 969083057, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'auinit', 1, 'eh', 969083057, 'EH')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'aulast', 1, 'lenneberg', 969083057, 'Lenneberg')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'title', 1, 'biological foundations of language', 969083057, 'Biological foundations of language')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'genre', 1, 'book', 969083057, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'date', 1, '1967', 969083057, '1967')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083057, 'info:sid/google', '49f66163316bd3e0a0f8b45272eacb5a')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082778 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082778, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082778 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:04', NULL, 969082778, 'test_bd', 'successful', '2015-02-23 18:18:04')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2760
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082778
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04ce86f671a2143874c5cae2202db2b8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083058, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083058, '121212')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083058, '04ce86f671a2143874c5cae2202db2b8')[0m
[1m[35m (15.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082779"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082779 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082779 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969082779
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082779, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082779\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083058 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083058)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082779&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 36ms (ActiveRecord: 29.2ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '974f489f20896eafa8e9acd7ceed0bfa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083059, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083059, '121212')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083059, '974f489f20896eafa8e9acd7ceed0bfa')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082780, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082780"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082780 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082780 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014013
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082780, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014013\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083059 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083059)
Redirected to http://test.host/resolve?umlaut.request_id=969082780&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 30.1ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ab610e0db765ad89ee2e2f631e027d5d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083060, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083060, '121212')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083060, 'ab610e0db765ad89ee2e2f631e027d5d')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082781, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082781"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082781 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082781 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082781 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:04', NULL, 969082781, 'BorrowDirect', 'in_progress', '2015-02-23 18:18:04')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2761
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082781, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083060 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083060)
Redirected to http://test.host/resolve?umlaut.request_id=969082781&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 76ms (ActiveRecord: 62.1ms)
[1m[36mDispatchedService Load (4.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082781[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082781 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2761
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082781 ORDER BY id ASC[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014016
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1bac297b373dae9c03ccfafa6fc488c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083061, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083061, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083061, 'd1bac297b373dae9c03ccfafa6fc488c')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082782, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082782"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082782 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082782 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:04', NULL, 969082782, 'BorrowDirect', 'in_progress', '2015-02-23 18:18:04')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2762[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082782, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083061 LIMIT 1
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083061)[0m
Redirected to http://example.org
Completed 302 Found in 74ms (ActiveRecord: 64.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '862e9b908fb8ab7ea62b088a17666cd8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (2.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212')
[1m[36mSQL (1.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2762[0m
[1m[35mSQL (2.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083062, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083062, '121212')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014018
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083062, '862e9b908fb8ab7ea62b088a17666cd8')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082783, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082783"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082783 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082783 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082783 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:04', NULL, 969082783, 'BorrowDirect', 'in_progress', '2015-02-23 18:18:04')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2763
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082783, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083062 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083062)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 78ms (Views: 0.3ms | ActiveRecord: 65.2ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '202aab83695372a7b98755673a0f769d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082783 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35m (2.3ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:18:04', '121212')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083063, 'journal')
[1m[36mSQL (2.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:18:04' WHERE `dispatched_services`.`id` = 2763[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'isbn', 1, '121212', 969083063, '121212')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (2.9ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014020[0m
[1m[35m (25.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083063, '202aab83695372a7b98755673a0f769d')
[1m[36m (34.3ms)[0m [1mCOMMIT[0m
[1m[35m (25.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082784"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082784 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082784 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082784, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083063 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083063)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082784&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A18%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 29.8ms)
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a56cb6eb0df25cf6a0485362c7647b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:18:04', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'format', 'journal', 969083064, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'title', 1, 'title', 969083064, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:18:04', 'author', 1, 'au', 969083064, 'au')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:18:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083064, '8a56cb6eb0df25cf6a0485362c7647b3')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:18:04', 969082785, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:18:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082785, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082785 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:18:05', NULL, 969082785, 'test_bd', 'successful', '2015-02-23 18:18:05')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:18:05' WHERE `dispatched_services`.`id` = 2764[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082785[0m
[1m[35mServiceResponse Load (8.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082785 ORDER BY id ASC
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35m (0.6ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '080bcf416fea5d2c24ccd91a7d10e145' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:09', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'format', 'journal', 969083065, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083065, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'aulast', 1, 'grimes', 969083065, 'Grimes')[0m
[1m[35m (21.9ms)[0m COMMIT
[1m[36m (2.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:19:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083065, '080bcf416fea5d2c24ccd91a7d10e145')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082786, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082786 ORDER BY id ASC[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc978bd98ce661b94aea0a010e6da8d1' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:19:09', 'biological foundations of language', '1967')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'format', 'book', 969083066, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'auinit', 1, 'eh', 969083066, 'EH')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'aulast', 1, 'lenneberg', 969083066, 'Lenneberg')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'title', 1, 'biological foundations of language', 969083066, 'Biological foundations of language')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'genre', 1, 'book', 969083066, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'date', 1, '1967', 969083066, '1967')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:19:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083066, 'info:sid/google', 'dc978bd98ce661b94aea0a010e6da8d1')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (8.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082787 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082787, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082787 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:09', NULL, 969082787, 'test_bd', 'successful', '2015-02-23 18:19:09')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:09' WHERE `dispatched_services`.`id` = 2765
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082787
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f3ce92c604ab4cc9c3e2b2b1800e950b' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:19:09', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'format', 'journal', 969083067, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'auinit', 1, 'rd', 969083067, 'RD')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'aulast', 1, 'kaplan', 969083067, 'Kaplan')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'atitle', 1, 'the coming anarchy', 969083067, 'The coming anarchy')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'title', 1, 'the atlantic monthly', 969083067, 'The Atlantic monthly')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'volume', 1, '273', 969083067, '273')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'issue', 1, '2', 969083067, '2')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'date', 1, '1994', 969083067, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'spage', 1, '44', 969083067, '44')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'issn', 1, '1072-7825', 969083067, '1072-7825')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:19:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083067, 'info:sid/google', 'f3ce92c604ab4cc9c3e2b2b1800e950b')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082788 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:09', NULL, 969082788, 'test_bd', 'successful', '2015-02-23 18:19:09')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:09' WHERE `dispatched_services`.`id` = 2766[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082788[0m
[1m[35mServiceResponse Exists (3.4ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082788 LIMIT 1
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c2b1d1bba83d2aeb84c925281aac65e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (7.8ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:09', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'format', 'journal', 969083068, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:09', 'isbn', 1, '9789810743734', 969083068, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083068, '2c2b1d1bba83d2aeb84c925281aac65e')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082789[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:09', NULL, 969082789, 'test_bd', 'queued', '2015-02-23 18:19:09')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:09' WHERE `dispatched_services`.`id` = 2767
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082789 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083068)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083068)
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082789) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082789)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (22.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082789 AND `dispatched_services`.`id` = 2767 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082789, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2767
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082789 LIMIT 1
[1m[36mDispatchedService Load (7.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083068 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083068)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (2.0ms)
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082789 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (14.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082789 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (43.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (46.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (120.3ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083068
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082789
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 502ms (Views: 169.6ms | ActiveRecord: 128.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:19:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1924e2eb9e786bc56a39185b22fb475c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:10', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'format', 'book', 969083069, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'genre', 1, 'book', 969083069, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'author', 1, 'smith', 969083069, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'title', 1, 'some book', 969083069, 'Some Book')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:19:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083069, '1924e2eb9e786bc56a39185b22fb475c')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082790
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:10', NULL, 969082790, 'BorrowDirect', 'queued', '2015-02-23 18:19:10')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2768[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082790 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083069)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083069)[0m
[1m[35mServiceResponse Load (8.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082790) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082790)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082790 AND `dispatched_services`.`id` = 2768 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082790, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2768[0m
[1m[35m (22.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082790 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083069 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083069)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (10.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082790 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082790 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083069
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082790
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 267ms (Views: 21.8ms | ActiveRecord: 140.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:19:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '766715e7441bd0dfc1148d69e664e0f6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:10', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'format', 'journal', 969083070, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'genre', 1, 'article', 969083070, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'title', 1, 'foo', 969083070, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'author', 1, 'bar', 969083070, 'bar')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:19:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083070, '766715e7441bd0dfc1148d69e664e0f6')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082791
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:10', NULL, 969082791, 'BorrowDirect', 'queued', '2015-02-23 18:19:10')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2769[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082791 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083070)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083070)[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082791) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082791)[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082791 AND `dispatched_services`.`id` = 2769 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2769
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082791 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083070 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083070)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (9.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082791 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082791 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083070[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082791[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 218ms (Views: 17.8ms | ActiveRecord: 121.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '984ea1d6da56344a2e40a84c437cb24d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:10', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'format', 'book', 969083071, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'genre', 1, 'book', 969083071, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:10', 'title', 1, 'foo', 969083071, 'foo')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:19:10', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083071, '984ea1d6da56344a2e40a84c437cb24d')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:10', NULL, 969082792, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:19:10')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:10' WHERE `dispatched_services`.`id` = 2770
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082792" for 127.0.0.1 at 2015-02-23 13:19:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082792"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082792 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083071 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083071)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082792
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082792
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082792 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082792 [["request_id", 969082792]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083071 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083071)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082792 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082792 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083071[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082792[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 19.9ms | ActiveRecord: 51.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72566f51d6faeb114c824016e4a0a8f5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:11', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'format', 'journal', 969083072, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'isbn', 1, '9789810743734', 969083072, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083072, '72566f51d6faeb114c824016e4a0a8f5')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082793[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:11', NULL, 969082793, 'BorrowDirect', 'queued', '2015-02-23 18:19:11')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2771
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083072)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072)
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082793) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082793)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`id` = 2771 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (9.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082793, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:11', 'Choose your delivery location', 969082793, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2771[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083072 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082793 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083072[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082793[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 317ms (Views: 25.3ms | ActiveRecord: 118.4ms)
Started GET "/borrow_direct/BorrowDirect/969082793?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:19:11 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082793"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082793 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2771[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:11', 969082793, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083072 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082793&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 37.8ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2771
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014030[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082793&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082793", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083072 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082793[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082793 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793[0m [["request_id", 969082793]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083072 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083072)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082793 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082793 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083072
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082793
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 82ms (Views: 21.6ms | ActiveRecord: 51.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:19:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b41e74064fcb941997eaa06d323964f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:11', '0109836413')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'format', 'journal', 969083073, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'isbn', 1, '0109836413', 969083073, '0109836413')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (6.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:19:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083073, '1b41e74064fcb941997eaa06d323964f')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082794
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:11', NULL, 969082794, 'BorrowDirect', 'queued', '2015-02-23 18:19:11')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2772[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082794 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083073)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083073)[0m
[1m[35mServiceResponse Load (7.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082794) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082794)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082794 AND `dispatched_services`.`id` = 2772 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082794, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:11', 'This item is not currently available from BorrowDirect', 969082794, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2772
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082794 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083073 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083073)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082794 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082794 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083073[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082794[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 264ms (Views: 22.0ms | ActiveRecord: 124.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4a1fd7ca49daa89bf4ae7cff9de3e087' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:11', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'format', 'journal', 969083074, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:11', 'isbn', 1, '9789810743734', 969083074, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083074, '4a1fd7ca49daa89bf4ae7cff9de3e087')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082795[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:11', NULL, 969082795, 'BorrowDirect', 'queued', '2015-02-23 18:19:11')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:11' WHERE `dispatched_services`.`id` = 2773
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083074)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074)
[1m[36mServiceResponse Load (8.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082795) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082795)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`id` = 2773 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082795, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:12', 'Choose your delivery location', 969082795, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2773[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083074 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.0ms)
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082795 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.6ms)
[1m[36mRequest Load (2.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083074[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082795[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 331ms (Views: 34.5ms | ActiveRecord: 120.7ms)
Started GET "/borrow_direct/BorrowDirect/969082795?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:19:12 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082795"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082795 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2773[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:12', 969082795, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083074 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082795&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 46ms (ActiveRecord: 37.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2773
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014035[0m
[1m[35m (15.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082795&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082795", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083074 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082795[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082795 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795[0m [["request_id", 969082795]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.9ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083074 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083074)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.2ms)
[1m[35mServiceResponse Load (9.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082795 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082795 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083074
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082795
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 85ms (Views: 22.7ms | ActiveRecord: 52.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd011d14a2910c8c7e9f95835264e06d7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:12', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:12', 'format', 'journal', 969083075, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:12', 'isbn', 1, '9789810743734', 969083075, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083075, 'd011d14a2910c8c7e9f95835264e06d7')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082796
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:12', NULL, 969082796, 'BorrowDirect', 'queued', '2015-02-23 18:19:12')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2774[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082796 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083075)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083075)[0m
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082796) ORDER BY id ASC
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082796)[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082796 AND `dispatched_services`.`id` = 2774 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082796, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (50.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (40.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:12', 'Choose your delivery location', 969082796, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (28.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2774
[1m[36m (30.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082796 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796
[1m[36mReferent Load (2.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083075 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083075)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082796 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082796 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082796 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083075
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082796
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 412ms (Views: 24.9ms | ActiveRecord: 129.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ff683ab925ae3e8d6867eba6c3e4244' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:12', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:12', 'format', 'journal', 969083076, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:12', 'isbn', 1, '9789810743734', 969083076, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083076, '1ff683ab925ae3e8d6867eba6c3e4244')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082797
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:12', NULL, 969082797, 'BorrowDirect', 'queued', '2015-02-23 18:19:12')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:12' WHERE `dispatched_services`.`id` = 2775[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083076)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076)[0m
[1m[35mServiceResponse Load (8.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082797) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082797)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`id` = 2775 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082797, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 'Choose your delivery location', 969082797, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2775
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083076 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082797 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083076
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082797
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 308ms (Views: 21.9ms | ActiveRecord: 118.2ms)
Started GET "/borrow_direct/BorrowDirect/969082797" for 127.0.0.1 at 2015-02-23 13:19:13 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082797"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082797 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082797, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083076 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082797&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.5ms)
Started GET "/resolve?umlaut.request_id=969082797&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082797", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083076 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082797[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797[0m [["request_id", 969082797]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083076 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083076)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082797 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082797 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082797 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083076[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082797[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 22.3ms | ActiveRecord: 48.9ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '815b9171d66791d52d9fc3a3a4d809c6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:13', 'title')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083077, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'title', 1, 'title', 969083077, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'author', 1, 'au', 969083077, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083077, '815b9171d66791d52d9fc3a3a4d809c6')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082798, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (13.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082798 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082798, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082798 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082798, 'test_bd', 'successful', '2015-02-23 18:19:13')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2776[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082798[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3002c4b20c63d4f56a037e863a78a41e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (8.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:13', 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083078, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'title', 1, 'title', 969083078, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'author', 1, 'au', 969083078, 'au')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083078, '3002c4b20c63d4f56a037e863a78a41e')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082799, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (8.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082799 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082799, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082799 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082799, 'test_bd', 'successful', '2015-02-23 18:19:13')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2777
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082799
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b8386927c6fabe9f0f4e3e3afc96f1d2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:13', 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083079, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'title', 1, 'title', 969083079, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'author', 1, 'au', 969083079, 'au')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083079, 'b8386927c6fabe9f0f4e3e3afc96f1d2')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082800, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082800 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082800 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082800, 'test_bd', 'successful', '2015-02-23 18:19:13')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2778
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082800
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '064454f7dd1e89ae922761f3e99c7083' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:13', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083080, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'isbn', 1, '9789810743734', 969083080, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083080, '064454f7dd1e89ae922761f3e99c7083')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082801 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082801, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082801 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082801, 'test_bd', 'successful', '2015-02-23 18:19:13')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2779[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082801[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e0734b9c249f848c928e91eb0d273c8' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:13', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083081, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'title', 1, 'title', 969083081, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'author', 1, 'au', 969083081, 'au')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083081, '5e0734b9c249f848c928e91eb0d273c8')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:13', 969082802, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082802, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082802 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:13', NULL, 969082802, 'test_bd', 'successful', '2015-02-23 18:19:13')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:13' WHERE `dispatched_services`.`id` = 2780[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082802[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082802 ORDER BY id ASC
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.1ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f31328fc81a96f35c10214dad89e384d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:13', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'format', 'journal', 969083082, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:13', 'isbn', 1, '121212', 969083082, '121212')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083082, 'f31328fc81a96f35c10214dad89e384d')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082803"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082803 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082803 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969082803
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082803, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082803\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083082 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083082)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082803&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 36ms (ActiveRecord: 28.6ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4462590e44bfd6d4c2078f273bb171cc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083083, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083083, '121212')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083083, '4462590e44bfd6d4c2078f273bb171cc')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082804, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082804"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082804 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082804 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014050
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082804, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014050\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083083 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083083)
Redirected to http://test.host/resolve?umlaut.request_id=969082804&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 35ms (ActiveRecord: 28.9ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e7c4bce5fab00ded0cccbeaee3c6181' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083084, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083084, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083084, '2e7c4bce5fab00ded0cccbeaee3c6181')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082805, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082805"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082805 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082805 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082805 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082805, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:14')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2781
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082805, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083084 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083084)
Redirected to http://test.host/resolve?umlaut.request_id=969082805&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 73ms (ActiveRecord: 61.9ms)
[1m[36mDispatchedService Load (3.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082805[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082805 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082805 ORDER BY id ASC[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2781[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014053
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89be4c523262a2307927d1d258571429' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083085, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083085, '121212')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083085, '89be4c523262a2307927d1d258571429')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082806, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082806"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082806 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082806 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082806 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082806, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:14')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2782[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082806, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083085 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083085)[0m
Redirected to http://example.org
Completed 302 Found in 76ms (ActiveRecord: 61.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5eb71c7a2bd7b6ae7b72981a35a9e8f0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083086, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083086, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083086, '5eb71c7a2bd7b6ae7b72981a35a9e8f0')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (10.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082807, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082807"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082807 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082807 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082807 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082807, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:14')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2783[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082807, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083086 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083086)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 63.5ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26001c36d0f2222825d06434c7007a59' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mDispatchedService Load (4.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082807 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '121212')[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083087, 'journal')[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2783
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '121212', 969083087, '121212')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014057
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (13.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083087, '26001c36d0f2222825d06434c7007a59')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082808"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082808 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (7.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082808 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 969082808, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083087 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083087)
Redirected to http://test.host/resolve?umlaut.request_id=969082808&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.3ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0b96c3aca197b77dd4d002025d48a89' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083088, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '9789810743734', 969083088, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083088, 'a0b96c3aca197b77dd4d002025d48a89')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082809 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082809, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:14', 'Choose your delivery location', 969082809, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082809 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082809, 'test_bd', 'successful', '2015-02-23 18:19:14')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:14' WHERE `dispatched_services`.`id` = 2784
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082809
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74df9775a063433afe74c5c8b848d8a3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:14', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'format', 'journal', 969083089, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:14', 'isbn', 1, '9789810743734', 969083089, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:14', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083089, '74df9775a063433afe74c5c8b848d8a3')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082810 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:14', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082810, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082810 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:14', NULL, 969082810, 'test_bd', 'failed_temporary', '2015-02-23 18:19:14')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:19:15' WHERE `dispatched_services`.`id` = 2785[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082810[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b01268736b0a1bddeb482b99cfcf2383' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:15', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:15', 'format', 'journal', 969083090, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:15', 'isbn', 1, '0109836413', 969083090, '0109836413')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:19:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083090, 'b01268736b0a1bddeb482b99cfcf2383')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082811 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082811, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:15', 'This item is not currently available from BorrowDirect', 969082811, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082811 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:15', NULL, 969082811, 'test_bd', 'successful', '2015-02-23 18:19:15')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:15' WHERE `dispatched_services`.`id` = 2786[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082811[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45ced78a2c28400693fc4d80b5707653' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:15', '000000000')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:15', 'format', 'journal', 969083091, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:15', 'isbn', 1, '000000000', 969083091, '000000000')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:19:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083091, '45ced78a2c28400693fc4d80b5707653')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mServiceResponse Load (8.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082812 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082812, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:15', 'This item is not currently available from BorrowDirect', 969082812, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082812 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:15', NULL, 969082812, 'test_bd', 'successful', '2015-02-23 18:19:15')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:15' WHERE `dispatched_services`.`id` = 2787[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082812[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fe49c269a7aa92191fa99700c4f7f1e' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:41', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:41', 'format', 'journal', 969083092, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:41', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083092, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:41', 'aulast', 1, 'grimes', 969083092, 'Grimes')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (11.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:19:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083092, '3fe49c269a7aa92191fa99700c4f7f1e')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082813, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (8.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082813 ORDER BY id ASC[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a561e3c52bc2ad75384b5dab06a28043' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:19:42', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083093, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'auinit', 1, 'rd', 969083093, 'RD')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'aulast', 1, 'kaplan', 969083093, 'Kaplan')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'atitle', 1, 'the coming anarchy', 969083093, 'The coming anarchy')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'title', 1, 'the atlantic monthly', 969083093, 'The Atlantic monthly')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'volume', 1, '273', 969083093, '273')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'issue', 1, '2', 969083093, '2')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'date', 1, '1994', 969083093, '1994')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'spage', 1, '44', 969083093, '44')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'issn', 1, '1072-7825', 969083093, '1072-7825')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083093, 'info:sid/google', 'a561e3c52bc2ad75384b5dab06a28043')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082814 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:42', NULL, 969082814, 'test_bd', 'successful', '2015-02-23 18:19:42')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2788
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082814
[1m[36mServiceResponse Exists (3.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082814 LIMIT 1[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa08ab23d3c127453641178208ccf885' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:19:42', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'book', 969083094, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'auinit', 1, 'eh', 969083094, 'EH')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'aulast', 1, 'lenneberg', 969083094, 'Lenneberg')[0m
[1m[35mSQL (10.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'title', 1, 'biological foundations of language', 969083094, 'Biological foundations of language')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'genre', 1, 'book', 969083094, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'date', 1, '1967', 969083094, '1967')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083094, 'info:sid/google', 'fa08ab23d3c127453641178208ccf885')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082815 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082815, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082815 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:42', NULL, 969082815, 'test_bd', 'successful', '2015-02-23 18:19:42')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2789
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082815
[1m[36m (0.8ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acc2b4c2cb5463c2177b91ffedd48003' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083095, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'isbn', 1, '121212', 969083095, '121212')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (6.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083095, 'acc2b4c2cb5463c2177b91ffedd48003')[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082816"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082816 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082816 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969082816
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082816, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082816\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083095 LIMIT 1
[1m[36mReferentValue Load (1.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083095)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082816&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 42ms (ActiveRecord: 29.0ms)
[1m[35mRequest Load (2.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3a519f5d6ffded6b16fc58a019120561' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083096, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'isbn', 1, '121212', 969083096, '121212')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083096, '3a519f5d6ffded6b16fc58a019120561')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082817, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082817"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082817 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082817 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014069
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082817, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014069\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083096 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083096)
Redirected to http://test.host/resolve?umlaut.request_id=969082817&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 35ms (ActiveRecord: 28.9ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eeb3d8c0d8c9bee8a002ebd2efce5091' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083097, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'isbn', 1, '121212', 969083097, '121212')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083097, 'eeb3d8c0d8c9bee8a002ebd2efce5091')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082818, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082818"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082818 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (9.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082818 ORDER BY id ASC
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082818 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:42', NULL, 969082818, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:42')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2790
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082818, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083097 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083097)
Redirected to http://test.host/resolve?umlaut.request_id=969082818&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 112ms (ActiveRecord: 68.8ms)
[1m[36mDispatchedService Load (4.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082818[0m
[1m[35mServiceResponse Load (9.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082818 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (2.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082818 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2790[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014072
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71535caa242272c677d6b6eee9a2822a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'format', 'journal', 969083098, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:42', 'isbn', 1, '121212', 969083098, '121212')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083098, '71535caa242272c677d6b6eee9a2822a')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082819, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082819"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082819 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082819 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:42', NULL, 969082819, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:42')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:42' WHERE `dispatched_services`.`id` = 2791[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:42', 969082819, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (2.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083098 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083098)[0m
Redirected to http://example.org
Completed 302 Found in 83ms (ActiveRecord: 69.6ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65c5b75e439d61c563bf6ca6012f9824' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:42', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'journal', 969083099, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'isbn', 1, '121212', 969083099, '121212')
[1m[36m (35.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083099, '65c5b75e439d61c563bf6ca6012f9824')[0m
[1m[35m (21.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:43', 969082820, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (30.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082820"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082820 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082820 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082820 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:43', NULL, 969082820, 'BorrowDirect', 'in_progress', '2015-02-23 18:19:43')
[1m[36m (28.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2792[0m
[1m[35m (30.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:43', 969082820, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083099 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083099)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 111ms (Views: 0.3ms | ActiveRecord: 97.7ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (2.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0b961f9d127d898bf7e3157426b3ea78' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082820 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (2.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:43', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'journal', 969083100, 'journal')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'isbn', 1, '121212', 969083100, '121212')
[1m[36mSQL (7.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2792[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:19:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083100, '0b961f9d127d898bf7e3157426b3ea78')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014076[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082821"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082821 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082821 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:43', 969082821, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083100 LIMIT 1[0m
[1m[35mReferentValue Load (2.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083100)
Redirected to http://test.host/resolve?umlaut.request_id=969082821&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 30.1ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11bd599a519aa92febd622836b7a8488' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:43', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'journal', 969083101, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'title', 1, 'title', 969083101, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'author', 1, 'au', 969083101, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:43', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083101, '11bd599a519aa92febd622836b7a8488')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:43', 969082822, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082822, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082822 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:43', NULL, 969082822, 'test_bd', 'successful', '2015-02-23 18:19:43')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2793
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082822
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082822 ORDER BY id ASC[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '38ee275d257af1ebced27da22072b580' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:43', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'journal', 969083102, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'isbn', 1, '9789810743734', 969083102, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083102, '38ee275d257af1ebced27da22072b580')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082823
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:43', NULL, 969082823, 'test_bd', 'queued', '2015-02-23 18:19:43')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2794[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082823 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083102)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083102)[0m
[1m[35mServiceResponse Load (8.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082823) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082823)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082823 AND `dispatched_services`.`id` = 2794 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082823, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:19:43' WHERE `dispatched_services`.`id` = 2794[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082823 LIMIT 1[0m
[1m[35mDispatchedService Load (7.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083102 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083102)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms)
[1m[36mServiceResponse Load (9.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082823 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (43.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082823 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083102[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082823[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 382ms (Views: 125.6ms | ActiveRecord: 121.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:19:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0cfba120631f672d074f0e7e4f87d73c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:43', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'format', 'book', 969083103, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'genre', 1, 'book', 969083103, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'author', 1, 'smith', 969083103, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:43', 'title', 1, 'some book', 969083103, 'Some Book')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:19:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083103, '0cfba120631f672d074f0e7e4f87d73c')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082824[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:44', NULL, 969082824, 'BorrowDirect', 'queued', '2015-02-23 18:19:44')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2795
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082824 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083103)[0m
[1m[35mReferentValue Load (1.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083103)
[1m[36mServiceResponse Load (8.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082824) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082824)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082824 AND `dispatched_services`.`id` = 2795 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082824, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2795
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082824 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083103 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083103)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (9.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082824 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082824 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083103[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (3.0ms)[0m BEGIN
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"z6quFfX0afVaA8_TgfrRMf6q3x8","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082824[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (8.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"z6quFfX0afVaA8_TgfrRMf6q3x8\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2791
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 20.2ms | ActiveRecord: 129.2ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:19:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cec205b383488072bd65d4372de92362' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (3.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:44', 'foo')
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014074[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'format', 'journal', 969083104, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'genre', 1, 'article', 969083104, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'title', 1, 'foo', 969083104, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'author', 1, 'bar', 969083104, 'bar')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:19:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083104, 'cec205b383488072bd65d4372de92362')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082825
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:44', NULL, 969082825, 'BorrowDirect', 'queued', '2015-02-23 18:19:44')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2796[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082825 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083104)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083104)[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082825) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082825)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082825 AND `dispatched_services`.`id` = 2796 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2796
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082825 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083104 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083104)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082825 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082825 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083104[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082825[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 214ms (Views: 16.8ms | ActiveRecord: 121.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3e2b98c4f6fc5bf4a6d6a5963864ab9' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:44', 'foo')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'format', 'book', 969083105, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'genre', 1, 'book', 969083105, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'title', 1, 'foo', 969083105, 'foo')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:19:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083105, 'd3e2b98c4f6fc5bf4a6d6a5963864ab9')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:44', NULL, 969082826, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:19:44')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2797
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082826" for 127.0.0.1 at 2015-02-23 13:19:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082826"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082826 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083105 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083105)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082826
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082826
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082826 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082826 [["request_id", 969082826]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083105 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083105)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082826 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082826 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083105[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082826[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 19.1ms | ActiveRecord: 50.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1f7ffaac1985d9caf0f6cf8933293751' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:44', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'format', 'journal', 969083106, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:44', 'isbn', 1, '9789810743734', 969083106, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:44', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083106, '1f7ffaac1985d9caf0f6cf8933293751')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082827[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:44', NULL, 969082827, 'BorrowDirect', 'queued', '2015-02-23 18:19:44')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2798
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083106)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106)
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082827) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082827)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`id` = 2798 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:44', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082827, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:44', 'Choose your delivery location', 969082827, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2798[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083106 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082827 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083106[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082827[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 271ms (Views: 24.0ms | ActiveRecord: 124.5ms)
Started GET "/borrow_direct/BorrowDirect/969082827?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:19:44 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082827"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082827 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2798[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:44', 969082827, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083106 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082827&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 53ms (ActiveRecord: 39.4ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:19:44' WHERE `dispatched_services`.`id` = 2798
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014084[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082827&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A44-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082827", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:44-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083106 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082827[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082827 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827[0m [["request_id", 969082827]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083106 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083106)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082827 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082827 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083106
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082827
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 83ms (Views: 21.3ms | ActiveRecord: 52.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:19:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'def6f47e5257d22a7f1f1beafad73b2a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:45', '0109836413')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'format', 'journal', 969083107, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'isbn', 1, '0109836413', 969083107, '0109836413')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:19:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083107, 'def6f47e5257d22a7f1f1beafad73b2a')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082828
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:45', NULL, 969082828, 'BorrowDirect', 'queued', '2015-02-23 18:19:45')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2799[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082828 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083107)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083107)[0m
[1m[35mServiceResponse Load (8.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082828) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082828)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082828 AND `dispatched_services`.`id` = 2799 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082828, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:45', 'This item is not currently available from BorrowDirect', 969082828, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2799
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082828 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083107 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083107)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082828 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082828 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083107[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082828[0m
[1m[35m (19.6ms)[0m COMMIT
Completed 200 OK in 263ms (Views: 19.4ms | ActiveRecord: 126.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e98ee68414a0e4bf433024589bb41653' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:45', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'format', 'journal', 969083108, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'isbn', 1, '9789810743734', 969083108, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083108, 'e98ee68414a0e4bf433024589bb41653')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082829[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:45', NULL, 969082829, 'BorrowDirect', 'queued', '2015-02-23 18:19:45')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2800
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083108)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108)
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082829) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082829)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`id` = 2800 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:45', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082829, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:45', 'Choose your delivery location', 969082829, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2800[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083108 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082829 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083108[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082829[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 263ms (Views: 21.2ms | ActiveRecord: 120.2ms)
Started GET "/borrow_direct/BorrowDirect/969082829?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:19:45 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082829"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082829 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2800[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:45', 969082829, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083108 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082829&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 52ms (ActiveRecord: 37.8ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2800
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014089[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082829&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A45-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082829", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:45-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083108 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082829[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082829 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829[0m [["request_id", 969082829]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083108 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083108)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082829 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082829 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083108
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082829
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 78ms (Views: 18.0ms | ActiveRecord: 51.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c74446d3621e467524396d7f4e21850b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:45', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'format', 'journal', 969083109, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:45', 'isbn', 1, '9789810743734', 969083109, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083109, 'c74446d3621e467524396d7f4e21850b')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082830
[1m[36m (23.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:45', NULL, 969082830, 'BorrowDirect', 'queued', '2015-02-23 18:19:45')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:45' WHERE `dispatched_services`.`id` = 2801[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082830 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083109)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083109)[0m
[1m[35mServiceResponse Load (9.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082830) ORDER BY id ASC
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082830)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082830 AND `dispatched_services`.`id` = 2801 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082830, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 'Choose your delivery location', 969082830, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2801
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082830 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083109 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083109)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082830 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082830 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082830 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083109
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082830
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 277ms (Views: 21.1ms | ActiveRecord: 135.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:19:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1672c17a357d3481b542951d9518c776' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:46', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'format', 'journal', 969083110, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'isbn', 1, '9789810743734', 969083110, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083110, '1672c17a357d3481b542951d9518c776')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082831
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:46', NULL, 969082831, 'BorrowDirect', 'queued', '2015-02-23 18:19:46')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2802[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083110)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110)[0m
[1m[35mServiceResponse Load (8.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082831) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082831)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`id` = 2802 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082831, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 'Choose your delivery location', 969082831, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2802
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083110 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082831 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083110
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082831
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 264ms (Views: 20.6ms | ActiveRecord: 124.7ms)
Started GET "/borrow_direct/BorrowDirect/969082831" for 127.0.0.1 at 2015-02-23 13:19:46 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082831"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082831 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 969082831, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083110 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082831&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A46-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 28ms (ActiveRecord: 21.8ms)
Started GET "/resolve?umlaut.request_id=969082831&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A19%3A46-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:19:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082831", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:19:46-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083110 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110)[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082831[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831[0m [["request_id", 969082831]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083110 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083110)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082831 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082831 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082831 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083110[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082831[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 85ms (Views: 22.6ms | ActiveRecord: 53.5ms)
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e8fcd3e818be5e5759c856a56b6edca' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:46', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'format', 'journal', 969083111, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'title', 1, 'title', 969083111, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'author', 1, 'au', 969083111, 'au')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083111, '5e8fcd3e818be5e5759c856a56b6edca')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 969082832, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082832 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082832 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:46', NULL, 969082832, 'test_bd', 'successful', '2015-02-23 18:19:46')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2803
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082832
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c5477d3f93239bc5808073d8e108ff2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:46', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'format', 'journal', 969083112, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'title', 1, 'title', 969083112, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'author', 1, 'au', 969083112, 'au')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083112, '6c5477d3f93239bc5808073d8e108ff2')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 969082833, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082833 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082833, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082833 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:46', NULL, 969082833, 'test_bd', 'successful', '2015-02-23 18:19:46')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2804[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082833[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '00955c33222ec71fdc09b944dab6ca6e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:19:46', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'format', 'journal', 969083113, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'title', 1, 'title', 969083113, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:46', 'author', 1, 'au', 969083113, 'au')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:19:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083113, '00955c33222ec71fdc09b944dab6ca6e')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:46', 969082834, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082834 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082834, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082834 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:46', NULL, 969082834, 'test_bd', 'successful', '2015-02-23 18:19:46')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:46' WHERE `dispatched_services`.`id` = 2805
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082834
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5005fb5a3d9701909348b66d095d24f5' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '000000000')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083114, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '000000000', 969083114, '000000000')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083114, '5005fb5a3d9701909348b66d095d24f5')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082835 ORDER BY id ASC
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082835, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:47', 'This item is not currently available from BorrowDirect', 969082835, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082835 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082835, 'test_bd', 'successful', '2015-02-23 18:19:47')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2806
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082835
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b12e48c6ca2dfc6c13dff7fbdff450af' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083115, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '9789810743734', 969083115, '9789810743734')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083115, 'b12e48c6ca2dfc6c13dff7fbdff450af')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082836 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082836, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:47', 'Choose your delivery location', 969082836, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082836 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082836, 'test_bd', 'successful', '2015-02-23 18:19:47')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2807
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082836
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd707ad42a36825b6ab55927165f3a4da' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083116, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '0109836413', 969083116, '0109836413')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083116, 'd707ad42a36825b6ab55927165f3a4da')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082837 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082837, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:19:47', 'This item is not currently available from BorrowDirect', 969082837, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082837 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082837, 'test_bd', 'successful', '2015-02-23 18:19:47')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2808
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082837
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb1b0a428182465de8294078c3eca004' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083117, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '9789810743734', 969083117, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083117, 'bb1b0a428182465de8294078c3eca004')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082838 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082838, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082838 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082838, 'test_bd', 'failed_temporary', '2015-02-23 18:19:47')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2809[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082838[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '503970d584b8d4e0355c81b542ec4882' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:19:47', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'format', 'journal', 969083118, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:19:47', 'isbn', 1, '9789810743734', 969083118, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:19:47', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083118, '503970d584b8d4e0355c81b542ec4882')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mServiceResponse Load (8.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082839 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:19:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082839, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082839 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:19:47', NULL, 969082839, 'test_bd', 'successful', '2015-02-23 18:19:47')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:19:47' WHERE `dispatched_services`.`id` = 2810
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082839
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8aea2d5ed607e5c78645d7ada9e21058' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:01', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'format', 'journal', 969083119, 'journal')[0m
[1m[35mSQL (7.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'title', 1, 'title', 969083119, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'author', 1, 'au', 969083119, 'au')[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:22:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083119, '8aea2d5ed607e5c78645d7ada9e21058')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:01', 969082840, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082840, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082840 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:01', NULL, 969082840, 'test_bd', 'successful', '2015-02-23 18:22:01')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:01' WHERE `dispatched_services`.`id` = 2811[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082840[0m
[1m[35mServiceResponse Load (8.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082840 ORDER BY id ASC
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '99adc7aa0f90318fa590aea3aede1470' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:01', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'format', 'journal', 969083120, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:01', 'isbn', 1, '9789810743734', 969083120, '9789810743734')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083120, '99adc7aa0f90318fa590aea3aede1470')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082841[0m
[1m[35m (23.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:01', NULL, 969082841, 'test_bd', 'queued', '2015-02-23 18:22:01')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:01' WHERE `dispatched_services`.`id` = 2812
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082841 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083120)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083120)
[1m[36mServiceResponse Load (8.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082841) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082841)
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082841 AND `dispatched_services`.`id` = 2812 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082841, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:22:01' WHERE `dispatched_services`.`id` = 2812
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082841 LIMIT 1
[1m[36mDispatchedService Load (7.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083120 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083120)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (9.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082841 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082841 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (66.6ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083120
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (42.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082841
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 504ms (Views: 171.3ms | ActiveRecord: 131.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:22:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3ef516a30a5b29efca9b4e54746545e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:02', 'some book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'format', 'book', 969083121, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'genre', 1, 'book', 969083121, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'author', 1, 'smith', 969083121, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'title', 1, 'some book', 969083121, 'Some Book')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:22:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083121, 'c3ef516a30a5b29efca9b4e54746545e')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082842
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:02', NULL, 969082842, 'BorrowDirect', 'queued', '2015-02-23 18:22:02')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2813[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082842 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083121)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083121)[0m
[1m[35mServiceResponse Load (8.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082842) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082842)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082842 AND `dispatched_services`.`id` = 2813 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082842, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2813[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082842 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083121 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083121)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (9.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082842 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082842 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083121
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082842
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 253ms (Views: 19.2ms | ActiveRecord: 135.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:22:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24a3db4b583327325b04c369e65c0952' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:02', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'format', 'journal', 969083122, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'genre', 1, 'article', 969083122, 'article')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'title', 1, 'foo', 969083122, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'author', 1, 'bar', 969083122, 'bar')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:22:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083122, '24a3db4b583327325b04c369e65c0952')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082843
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:02', NULL, 969082843, 'BorrowDirect', 'queued', '2015-02-23 18:22:02')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2814[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082843 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083122)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083122)[0m
[1m[35mServiceResponse Load (8.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082843) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082843)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082843 AND `dispatched_services`.`id` = 2814 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2814
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082843 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083122 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083122)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (9.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082843 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082843 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083122[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082843[0m
[1m[35m (17.4ms)[0m COMMIT
Completed 200 OK in 227ms (Views: 17.5ms | ActiveRecord: 130.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f94195ecdb46e9eb1673d3fb287998aa' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:02', 'foo')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'format', 'book', 969083123, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'genre', 1, 'book', 969083123, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'title', 1, 'foo', 969083123, 'foo')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:22:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083123, 'f94195ecdb46e9eb1673d3fb287998aa')[0m
[1m[35m (33.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082844 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:02', NULL, 969082844, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:22:02')[0m
[1m[35m (26.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2815
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082844" for 127.0.0.1 at 2015-02-23 13:22:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082844"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082844 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083123 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083123)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082844
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082844
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082844 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082844 [["request_id", 969082844]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083123 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083123)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082844 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082844 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083123[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082844[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 19.7ms | ActiveRecord: 50.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9dac777f52f23ea94f9051f1f07ef492' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:02', '9789810743734')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'format', 'journal', 969083124, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:02', 'isbn', 1, '9789810743734', 969083124, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083124, '9dac777f52f23ea94f9051f1f07ef492')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082845[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:02', NULL, 969082845, 'BorrowDirect', 'queued', '2015-02-23 18:22:02')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:02' WHERE `dispatched_services`.`id` = 2816
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083124)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124)
[1m[36mServiceResponse Load (10.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082845) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082845)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (24.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`id` = 2816 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082845, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (29.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:03', 'Choose your delivery location', 969082845, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2816[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083124 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082845 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083124[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082845[0m
[1m[35m (15.0ms)[0m COMMIT
Completed 200 OK in 300ms (Views: 23.7ms | ActiveRecord: 123.1ms)
Started GET "/borrow_direct/BorrowDirect/969082845?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:22:03 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082845"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082845 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2816[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:03', 969082845, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083124 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082845&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 88ms (ActiveRecord: 38.8ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2816
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014114[0m
[1m[35m (14.5ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082845&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:22:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082845", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:22:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083124 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082845[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082845 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845[0m [["request_id", 969082845]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083124 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083124)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082845 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082845 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083124
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082845
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 85ms (Views: 20.7ms | ActiveRecord: 55.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:22:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a8a9b5bfafb37e3d0cda9d5377b913c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:03', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:03', 'format', 'journal', 969083125, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:03', 'isbn', 1, '0109836413', 969083125, '0109836413')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:22:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083125, '2a8a9b5bfafb37e3d0cda9d5377b913c')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082846
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:03', NULL, 969082846, 'BorrowDirect', 'queued', '2015-02-23 18:22:03')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2817[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082846 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083125)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083125)[0m
[1m[35mServiceResponse Load (8.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082846) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082846)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082846 AND `dispatched_services`.`id` = 2817 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082846, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:03', 'This item is not currently available from BorrowDirect', 969082846, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2817
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082846 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083125 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083125)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082846 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082846 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083125[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082846[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 256ms (Views: 19.7ms | ActiveRecord: 118.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '549b64b29be54a0bc6dce80299661608' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:03', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:03', 'format', 'journal', 969083126, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:03', 'isbn', 1, '9789810743734', 969083126, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083126, '549b64b29be54a0bc6dce80299661608')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082847[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:03', NULL, 969082847, 'BorrowDirect', 'queued', '2015-02-23 18:22:03')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2818
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083126)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126)
[1m[36mServiceResponse Load (8.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082847) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082847)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`id` = 2818 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082847, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:03', 'Choose your delivery location', 969082847, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2818[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083126 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082847 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083126[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082847[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 266ms (Views: 21.9ms | ActiveRecord: 122.4ms)
Started GET "/borrow_direct/BorrowDirect/969082847?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:22:03 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082847"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082847 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:22:03' WHERE `dispatched_services`.`id` = 2818[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 969082847, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083126 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082847&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 89ms (ActiveRecord: 37.7ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2818
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014119[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082847&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:22:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082847", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:22:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083126 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082847[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082847 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847[0m [["request_id", 969082847]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083126 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083126)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082847 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082847 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083126
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082847
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 79ms (Views: 18.8ms | ActiveRecord: 50.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b0b26ce829ac2a1828d60d07c81d9e0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:04', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'format', 'journal', 969083127, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'isbn', 1, '9789810743734', 969083127, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083127, '3b0b26ce829ac2a1828d60d07c81d9e0')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082848
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:04', NULL, 969082848, 'BorrowDirect', 'queued', '2015-02-23 18:22:04')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2819[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082848 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083127)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083127)[0m
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082848) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082848)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082848 AND `dispatched_services`.`id` = 2819 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082848, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 'Choose your delivery location', 969082848, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2819
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082848 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083127 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083127)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082848 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082848 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082848 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083127
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082848
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 257ms (Views: 21.2ms | ActiveRecord: 118.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:22:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3dddd5898527270c2bd8bcbf01d18f88' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:04', '9789810743734')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'format', 'journal', 969083128, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'isbn', 1, '9789810743734', 969083128, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083128, '3dddd5898527270c2bd8bcbf01d18f88')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082849
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:04', NULL, 969082849, 'BorrowDirect', 'queued', '2015-02-23 18:22:04')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2820[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083128)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128)[0m
[1m[35mServiceResponse Load (8.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082849) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082849)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`id` = 2820 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082849, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 'Choose your delivery location', 969082849, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:22:04' WHERE `dispatched_services`.`id` = 2820
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083128 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082849 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083128
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082849
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 262ms (Views: 20.6ms | ActiveRecord: 117.8ms)
Started GET "/borrow_direct/BorrowDirect/969082849" for 127.0.0.1 at 2015-02-23 13:22:04 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082849"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082849 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 969082849, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083128 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082849&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 70ms (ActiveRecord: 20.9ms)
Started GET "/resolve?umlaut.request_id=969082849&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:22:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082849", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:22:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083128 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082849[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849[0m [["request_id", 969082849]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083128 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083128)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082849 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082849 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082849 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083128[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082849[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 21.2ms | ActiveRecord: 50.2ms)
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e10d5ac27d1e6dbe6d039a244a991116' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:04', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'format', 'journal', 969083129, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:04', 'isbn', 1, '121212', 969083129, '121212')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083129, 'e10d5ac27d1e6dbe6d039a244a991116')[0m
[1m[35m (14.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082850"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082850 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082850 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969082850
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:04', 969082850, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082850\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083129 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083129)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082850&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 35ms (ActiveRecord: 28.1ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0328ee6670891daed6dfe421490c1c14' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083130, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083130, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083130, '0328ee6670891daed6dfe421490c1c14')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082851, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082851"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082851 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082851 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014126
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082851, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014126\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083130 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083130)
Redirected to http://test.host/resolve?umlaut.request_id=969082851&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 35ms (ActiveRecord: 27.9ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7d226d05c90bc7122b15869ad2f6b39e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083131, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083131, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083131, '7d226d05c90bc7122b15869ad2f6b39e')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082852, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082852"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082852 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082852 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:05', NULL, 969082852, 'BorrowDirect', 'in_progress', '2015-02-23 18:22:05')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2821
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082852, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083131 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083131)
Redirected to http://test.host/resolve?umlaut.request_id=969082852&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 75ms (ActiveRecord: 62.2ms)
[1m[36mDispatchedService Load (4.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082852[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2821
[1m[36mServiceResponse Load (9.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082852 ORDER BY id ASC[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014129
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96e7228d6388657e36691295cb55b666' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083132, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083132, '121212')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083132, '96e7228d6388657e36691295cb55b666')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082853, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082853"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082853 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082853 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082853 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:05', NULL, 969082853, 'BorrowDirect', 'in_progress', '2015-02-23 18:22:05')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2822[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082853, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083132 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083132)[0m
Redirected to http://example.org
Completed 302 Found in 73ms (ActiveRecord: 62.6ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082853 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mRequest Load (3.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a48ca497b54e691368fd62b19c121eef' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2822
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083133, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083133, '121212')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014131
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083133, 'a48ca497b54e691368fd62b19c121eef')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082854, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969082854"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082854 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (9.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082854 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082854, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083133 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083133)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082854&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 29.2ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e189571a25334fade46d49effab0c0b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083134, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083134, '121212')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083134, '5e189571a25334fade46d49effab0c0b')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082855, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082855"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082855 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082855 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082855 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:05', NULL, 969082855, 'BorrowDirect', 'in_progress', '2015-02-23 18:22:05')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2823[0m
[1m[35m (65.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082855, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (68.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083134 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083134)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 182ms (Views: 0.4ms | ActiveRecord: 168.3ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '55b4663fa4b918cb6efbde875507ddf6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mDispatchedService Load (3.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082855 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (32.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:05', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'format', 'journal', 969083135, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:05', 'isbn', 1, '121212', 969083135, '121212')
[1m[36mSQL (41.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:22:05' WHERE `dispatched_services`.`id` = 2823[0m
[1m[35m (29.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:22:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083135, '55b4663fa4b918cb6efbde875507ddf6')
[1m[36m (31.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014135[0m
[1m[35m (69.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082856"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082856 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082856 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:05', 969082856, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (103.3ms)[0m [1mCOMMIT[0m
[1m[35m (34.3ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083135 LIMIT 1[0m
[1m[35mReferentValue Load (1.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083135)
Redirected to http://test.host/resolve?umlaut.request_id=969082856&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A22%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 97ms (ActiveRecord: 49.9ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7cc912652c7b56077a9f5ea11b96948c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:06', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083136, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'title', 969083136, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'author', 1, 'au', 969083136, 'au')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083136, '7cc912652c7b56077a9f5ea11b96948c')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 969082857, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082857 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082857 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082857, 'test_bd', 'successful', '2015-02-23 18:22:06')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2824
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082857
[1m[36mRequest Load (2.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '93143e1ac94ac59fc3ab1a8a9b90ffe8' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:06', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083137, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'title', 969083137, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'author', 1, 'au', 969083137, 'au')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083137, '93143e1ac94ac59fc3ab1a8a9b90ffe8')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 969082858, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (10.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082858 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082858, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082858 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082858, 'test_bd', 'successful', '2015-02-23 18:22:06')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2825[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082858[0m
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5fee4e38ee10e13ee06f278439d0ce68' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:06', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083138, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'title', 969083138, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'author', 1, 'au', 969083138, 'au')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083138, '5fee4e38ee10e13ee06f278439d0ce68')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 969082859, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (10.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082859 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082859, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082859 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082859, 'test_bd', 'successful', '2015-02-23 18:22:06')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2826
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082859
[1m[36m (0.8ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80c331c8113fd7ce52bf3b9ddcdc6314' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:22:06', 'biological foundations of language', '1967')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'book', 969083139, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'auinit', 1, 'eh', 969083139, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'aulast', 1, 'lenneberg', 969083139, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'biological foundations of language', 969083139, 'Biological foundations of language')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'genre', 1, 'book', 969083139, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'date', 1, '1967', 969083139, '1967')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083139, 'info:sid/google', '80c331c8113fd7ce52bf3b9ddcdc6314')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082860 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082860, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082860 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082860, 'test_bd', 'successful', '2015-02-23 18:22:06')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2827[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082860[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2be3cb7c7e08257fe9b3807ad1ab4da6' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:22:06', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083140, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'auinit', 1, 'rd', 969083140, 'RD')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'aulast', 1, 'kaplan', 969083140, 'Kaplan')[0m
[1m[35mSQL (6.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'atitle', 1, 'the coming anarchy', 969083140, 'The coming anarchy')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'the atlantic monthly', 969083140, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'volume', 1, '273', 969083140, '273')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'issue', 1, '2', 969083140, '2')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'date', 1, '1994', 969083140, '1994')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'spage', 1, '44', 969083140, '44')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'issn', 1, '1072-7825', 969083140, '1072-7825')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083140, 'info:sid/google', '2be3cb7c7e08257fe9b3807ad1ab4da6')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082861 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082861, 'test_bd', 'successful', '2015-02-23 18:22:06')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2828
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082861
[1m[36mServiceResponse Exists (3.2ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082861 LIMIT 1[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bccdd6b75ebf5af791a19009e4df06ce' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:22:06', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083141, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083141, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'aulast', 1, 'grimes', 969083141, 'Grimes')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083141, 'bccdd6b75ebf5af791a19009e4df06ce')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082862, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mServiceResponse Load (8.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082862 ORDER BY id ASC[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bc16e1cc4ac68340c911c89497d89d1' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:06', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083142, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'isbn', 1, '0109836413', 969083142, '0109836413')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083142, '6bc16e1cc4ac68340c911c89497d89d1')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082863 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082863, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 'This item is not currently available from BorrowDirect', 969082863, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082863 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082863, 'test_bd', 'successful', '2015-02-23 18:22:06')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:06' WHERE `dispatched_services`.`id` = 2829[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082863[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3ccf9030b61f06859318f3821e59e15' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:06', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'format', 'journal', 969083143, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:06', 'isbn', 1, '9789810743734', 969083143, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083143, 'e3ccf9030b61f06859318f3821e59e15')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (8.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082864 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (6.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082864, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:06', 'Choose your delivery location', 969082864, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082864 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:06', NULL, 969082864, 'test_bd', 'successful', '2015-02-23 18:22:06')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:07' WHERE `dispatched_services`.`id` = 2830[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082864[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5aa97003eb4b97fdfce855c4e162c1c4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:07', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'format', 'journal', 969083144, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'isbn', 1, '9789810743734', 969083144, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083144, '5aa97003eb4b97fdfce855c4e162c1c4')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (8.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082865 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082865, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082865 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:07', NULL, 969082865, 'test_bd', 'failed_temporary', '2015-02-23 18:22:07')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:22:07' WHERE `dispatched_services`.`id` = 2831
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082865
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd836dda515a35f8c5ace6d6a6a8c89de' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:07', '000000000')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'format', 'journal', 969083145, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'isbn', 1, '000000000', 969083145, '000000000')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:22:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083145, 'd836dda515a35f8c5ace6d6a6a8c89de')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082866 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082866, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:22:07', 'This item is not currently available from BorrowDirect', 969082866, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082866 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:07', NULL, 969082866, 'test_bd', 'successful', '2015-02-23 18:22:07')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:07' WHERE `dispatched_services`.`id` = 2832
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082866
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e57dd3906c90f67e84ef92918f7edf13' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:22:07', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'format', 'journal', 969083146, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:22:07', 'isbn', 1, '9789810743734', 969083146, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:22:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083146, 'e57dd3906c90f67e84ef92918f7edf13')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082867 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:22:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082867, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082867 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:22:07', NULL, 969082867, 'test_bd', 'successful', '2015-02-23 18:22:07')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:22:07' WHERE `dispatched_services`.`id` = 2833[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082867[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ccbbd8213f475d88d6d08fd9cb7915e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:34', '9789810743734')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'format', 'journal', 969083147, 'journal')[0m
[1m[35mSQL (4.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'isbn', 1, '9789810743734', 969083147, '9789810743734')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083147, '6ccbbd8213f475d88d6d08fd9cb7915e')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082868
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:34', NULL, 969082868, 'test_bd', 'queued', '2015-02-23 18:24:34')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:34' WHERE `dispatched_services`.`id` = 2834[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082868 LIMIT 1[0m
[1m[35mReferent Load (5.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083147)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083147)[0m
[1m[35mServiceResponse Load (9.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082868) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082868)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082868 AND `dispatched_services`.`id` = 2834 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082868, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:24:34' WHERE `dispatched_services`.`id` = 2834[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082868 LIMIT 1[0m
[1m[35mDispatchedService Load (6.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083147 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083147)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (9.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082868 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (15.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082868 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (75.7ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083147[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082868[0m
[1m[35m (17.0ms)[0m COMMIT
Completed 200 OK in 728ms (Views: 145.3ms | ActiveRecord: 158.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:24:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0bc2c52666c1c94d3d17ff663914b49f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:34', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'format', 'book', 969083148, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'genre', 1, 'book', 969083148, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'author', 1, 'smith', 969083148, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:34', 'title', 1, 'some book', 969083148, 'Some Book')[0m
[1m[35m (21.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:24:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083148, '0bc2c52666c1c94d3d17ff663914b49f')
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082869[0m
[1m[35m (30.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:34', NULL, 969082869, 'BorrowDirect', 'queued', '2015-02-23 18:24:34')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:34' WHERE `dispatched_services`.`id` = 2835
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082869 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083148)[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083148)
[1m[36mServiceResponse Load (9.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082869) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082869)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082869 AND `dispatched_services`.`id` = 2835 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082869, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2835
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082869 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083148 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083148)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (9.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082869 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082869 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083148[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082869[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 295ms (Views: 19.7ms | ActiveRecord: 168.5ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:24:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d4308184dcaa0c5f0c80a8d8bbcc9fb' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:35', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'format', 'journal', 969083149, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'genre', 1, 'article', 969083149, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'title', 1, 'foo', 969083149, 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'author', 1, 'bar', 969083149, 'bar')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:24:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083149, '9d4308184dcaa0c5f0c80a8d8bbcc9fb')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082870[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:35', NULL, 969082870, 'BorrowDirect', 'queued', '2015-02-23 18:24:35')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2836
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082870 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083149)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083149)
[1m[36mServiceResponse Load (9.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082870) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082870)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082870 AND `dispatched_services`.`id` = 2836 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2836[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082870 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083149 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083149)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (9.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082870 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082870 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083149
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082870
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 259ms (Views: 17.4ms | ActiveRecord: 120.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '825afc56bca33108c65e71119628e424' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:35', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'format', 'book', 969083150, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'genre', 1, 'book', 969083150, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'title', 1, 'foo', 969083150, 'foo')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:24:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083150, '825afc56bca33108c65e71119628e424')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082871 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:35', NULL, 969082871, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:24:35')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2837[0m
[1m[35m (14.9ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082871" for 127.0.0.1 at 2015-02-23 13:24:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082871"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082871 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083150 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083150)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082871[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082871[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082871 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082871[0m [["request_id", 969082871]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083150 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083150)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (9.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082871 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082871 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083150
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082871
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 82ms (Views: 19.0ms | ActiveRecord: 54.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07e9f1ce257c195c5db7a11c8100e043' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:35', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'format', 'journal', 969083151, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:35', 'isbn', 1, '9789810743734', 969083151, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083151, '07e9f1ce257c195c5db7a11c8100e043')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082872
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:35', NULL, 969082872, 'BorrowDirect', 'queued', '2015-02-23 18:24:35')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2838[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083151)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151)[0m
[1m[35mServiceResponse Load (9.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082872) ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082872)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`id` = 2838 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082872, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:35', 'Choose your delivery location', 969082872, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2838
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083151 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082872 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083151
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082872
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 269ms (Views: 25.5ms | ActiveRecord: 121.6ms)
Started GET "/borrow_direct/BorrowDirect/969082872?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:24:35 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082872"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082872 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2838
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:35', 969082872, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083151 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082872&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 53ms (ActiveRecord: 38.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:24:35' WHERE `dispatched_services`.`id` = 2838[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014156
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082872&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:24:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082872", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:24:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083151 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082872
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082872 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 [["request_id", 969082872]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083151 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083151)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082872 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082872 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083151[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082872[0m
[1m[35m (15.2ms)[0m COMMIT
Completed 200 OK in 82ms (Views: 21.1ms | ActiveRecord: 51.5ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:24:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3f4270c220b285d1c6c47c14fd478dea' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:36', '0109836413')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'format', 'journal', 969083152, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'isbn', 1, '0109836413', 969083152, '0109836413')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:24:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083152, '3f4270c220b285d1c6c47c14fd478dea')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082873[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:36', NULL, 969082873, 'BorrowDirect', 'queued', '2015-02-23 18:24:36')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2839
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082873 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083152)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083152)
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082873) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082873)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082873 AND `dispatched_services`.`id` = 2839 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082873, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:36', 'This item is not currently available from BorrowDirect', 969082873, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2839[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082873 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083152 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083152)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082873 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082873 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083152
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082873
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 263ms (Views: 19.8ms | ActiveRecord: 121.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5fb62ed6f5d888ccc93210d9adf7767' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:36', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'format', 'journal', 969083153, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'isbn', 1, '9789810743734', 969083153, '9789810743734')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083153, 'd5fb62ed6f5d888ccc93210d9adf7767')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082874
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:36', NULL, 969082874, 'BorrowDirect', 'queued', '2015-02-23 18:24:36')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2840[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083153)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153)[0m
[1m[35mServiceResponse Load (9.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082874) ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082874)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`id` = 2840 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082874, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:36', 'Choose your delivery location', 969082874, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2840
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083153 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (10.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082874 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083153
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082874
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 276ms (Views: 20.8ms | ActiveRecord: 129.0ms)
Started GET "/borrow_direct/BorrowDirect/969082874?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:24:36 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082874"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082874 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2840
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:36', 969082874, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083153 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082874&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 49ms (ActiveRecord: 40.0ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2840[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014161
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082874&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:24:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082874", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:24:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083153 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082874
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082874 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 [["request_id", 969082874]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083153 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083153)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082874 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082874 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083153[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082874[0m
[1m[35m (15.2ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 18.2ms | ActiveRecord: 53.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'affe903adf92a25aab465ff289a7fd58' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:36', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'format', 'journal', 969083154, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:36', 'isbn', 1, '9789810743734', 969083154, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083154, 'affe903adf92a25aab465ff289a7fd58')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082875[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:36', NULL, 969082875, 'BorrowDirect', 'queued', '2015-02-23 18:24:36')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:36' WHERE `dispatched_services`.`id` = 2841
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082875 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083154)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083154)
[1m[36mServiceResponse Load (8.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082875) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082875)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082875 AND `dispatched_services`.`id` = 2841 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082875, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:37', 'Choose your delivery location', 969082875, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2841[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082875 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083154 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083154)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (10.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082875 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082875 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082875 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083154[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082875[0m
[1m[35m (17.5ms)[0m COMMIT
Completed 200 OK in 267ms (Views: 23.3ms | ActiveRecord: 123.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:24:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ee45759e0965e506c5cb10e8df0d29e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:37', '9789810743734')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'journal', 969083155, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'isbn', 1, '9789810743734', 969083155, '9789810743734')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083155, '1ee45759e0965e506c5cb10e8df0d29e')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082876[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:37', NULL, 969082876, 'BorrowDirect', 'queued', '2015-02-23 18:24:37')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2842
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083155)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155)
[1m[36mServiceResponse Load (9.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082876) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082876)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`id` = 2842 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082876, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:37', 'Choose your delivery location', 969082876, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2842[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083155 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (10.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082876 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083155[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082876[0m
[1m[35m (15.0ms)[0m COMMIT
Completed 200 OK in 280ms (Views: 22.1ms | ActiveRecord: 127.7ms)
Started GET "/borrow_direct/BorrowDirect/969082876" for 127.0.0.1 at 2015-02-23 13:24:37 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082876"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082876 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:37', 969082876, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083155 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082876&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.3ms)
Started GET "/resolve?umlaut.request_id=969082876&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:24:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082876", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:24:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083155 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082876
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 [["request_id", 969082876]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083155 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083155)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082876 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (54.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082876 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082876 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083155
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082876
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 130ms (Views: 65.7ms | ActiveRecord: 54.2ms)
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1ef6f95ca661b0c41b072ce92ff2b95b' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:24:37', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'book', 969083156, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'auinit', 1, 'eh', 969083156, 'EH')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'aulast', 1, 'lenneberg', 969083156, 'Lenneberg')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'title', 1, 'biological foundations of language', 969083156, 'Biological foundations of language')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'genre', 1, 'book', 969083156, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'date', 1, '1967', 969083156, '1967')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (6.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:24:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083156, 'info:sid/google', '1ef6f95ca661b0c41b072ce92ff2b95b')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (9.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082877 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082877, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082877 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:37', NULL, 969082877, 'test_bd', 'successful', '2015-02-23 18:24:37')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2843
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082877
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7deef231808c64bbceacc50ab93eb40' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:24:37', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'journal', 969083157, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'auinit', 1, 'rd', 969083157, 'RD')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'aulast', 1, 'kaplan', 969083157, 'Kaplan')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'atitle', 1, 'the coming anarchy', 969083157, 'The coming anarchy')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'title', 1, 'the atlantic monthly', 969083157, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'volume', 1, '273', 969083157, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'issue', 1, '2', 969083157, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'date', 1, '1994', 969083157, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'spage', 1, '44', 969083157, '44')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'issn', 1, '1072-7825', 969083157, '1072-7825')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:24:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083157, 'info:sid/google', 'f7deef231808c64bbceacc50ab93eb40')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082878 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:37', NULL, 969082878, 'test_bd', 'successful', '2015-02-23 18:24:37')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:37' WHERE `dispatched_services`.`id` = 2844[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082878[0m
[1m[35mServiceResponse Exists (3.5ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082878 LIMIT 1
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c15a7b3dfb3af2a2ed0cbf48b042192a' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:37', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'journal', 969083158, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083158, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'aulast', 1, 'grimes', 969083158, 'Grimes')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:24:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083158, 'c15a7b3dfb3af2a2ed0cbf48b042192a')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082879, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082879 ORDER BY id ASC
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9abe414c723706fe15e3369313386f5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:37', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'format', 'journal', 969083159, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'title', 1, 'title', 969083159, 'title')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:37', 'author', 1, 'au', 969083159, 'au')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:24:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083159, 'a9abe414c723706fe15e3369313386f5')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:37', 969082880, '--- {}\n', 'test_holding', 'holding')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082880, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082880 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082880, 'test_bd', 'successful', '2015-02-23 18:24:38')[0m
[1m[35m (32.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2845
[1m[36m (30.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082880
[1m[36mServiceResponse Load (9.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082880 ORDER BY id ASC[0m
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd94c05e433b1e5243cb52aee506ed18a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083160, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '9789810743734', 969083160, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083160, 'd94c05e433b1e5243cb52aee506ed18a')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (9.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082881 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082881, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082881 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082881, 'test_bd', 'failed_temporary', '2015-02-23 18:24:38')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2846
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082881
[1m[36mRequest Load (3.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0db31acbdcd144ad65ac062460b4da18' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (44.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083161, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '0109836413', 969083161, '0109836413')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083161, '0db31acbdcd144ad65ac062460b4da18')
[1m[36m (40.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082882 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082882, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (41.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:38', 'This item is not currently available from BorrowDirect', 969082882, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (54.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082882 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082882, 'test_bd', 'successful', '2015-02-23 18:24:38')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2847
[1m[36m (29.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082882
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f961e6b22d56f97fcdcdf488f9588b1' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '000000000')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083162, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '000000000', 969083162, '000000000')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083162, '2f961e6b22d56f97fcdcdf488f9588b1')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082883 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082883, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:38', 'This item is not currently available from BorrowDirect', 969082883, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082883 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082883, 'test_bd', 'successful', '2015-02-23 18:24:38')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2848
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082883
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7a9e5eb4db4d2b6b9a4db9f264a75231' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083163, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '9789810743734', 969083163, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083163, '7a9e5eb4db4d2b6b9a4db9f264a75231')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082884 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082884, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:38', 'Choose your delivery location', 969082884, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082884 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:38', NULL, 969082884, 'test_bd', 'successful', '2015-02-23 18:24:38')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:38' WHERE `dispatched_services`.`id` = 2849
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082884
[1m[36m (0.8ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed0ea316444cb3b1e514788a525df455' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083164, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '121212', 969083164, '121212')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083164, 'ed0ea316444cb3b1e514788a525df455')[0m
[1m[35m (14.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082885"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082885 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (8.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082885 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969082885
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:38', 969082885, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082885\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083164 LIMIT 1
[1m[36mReferentValue Load (4.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083164)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082885&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 40ms (ActiveRecord: 32.5ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94f55eaa8a61bbbc5cc9feba13564e1a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:38', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'format', 'journal', 969083165, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:38', 'isbn', 1, '121212', 969083165, '121212')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083165, '94f55eaa8a61bbbc5cc9feba13564e1a')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082886, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082886"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082886 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (9.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082886 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014179
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082886, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014179\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083165 LIMIT 1[0m
[1m[35mReferentValue Load (4.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083165)
Redirected to http://test.host/resolve?umlaut.request_id=969082886&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 40ms (ActiveRecord: 33.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'efcaf8b93d177964911d05296eb18954' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083166, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083166, '121212')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083166, 'efcaf8b93d177964911d05296eb18954')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082887, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082887"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082887 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (9.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082887 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:39', NULL, 969082887, 'BorrowDirect', 'in_progress', '2015-02-23 18:24:39')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2850
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082887, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083166 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083166)
Redirected to http://test.host/resolve?umlaut.request_id=969082887&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 76ms (ActiveRecord: 63.8ms)
[1m[36mDispatchedService Load (4.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082887[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2850
[1m[36mServiceResponse Load (10.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082887 ORDER BY id ASC[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014182
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da221a5b165311e3bbe76d44e469d77a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083167, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083167, '121212')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083167, 'da221a5b165311e3bbe76d44e469d77a')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082888, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082888"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082888 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (9.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082888 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082888 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (29.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:39', NULL, 969082888, 'BorrowDirect', 'in_progress', '2015-02-23 18:24:39')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2851[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082888, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083167 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083167)[0m
Redirected to http://example.org
Completed 302 Found in 102ms (ActiveRecord: 92.2ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8df48bec8972270b859a03e2e1cd970' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083168, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083168, '121212')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083168, 'd8df48bec8972270b859a03e2e1cd970')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082889, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969082889"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082889 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (9.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082889 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082889, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083168 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083168)
Redirected to http://test.host/resolve?umlaut.request_id=969082889&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 29.4ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea45d80794542453bba0f9446100e2e4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083169, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083169, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083169, 'ea45d80794542453bba0f9446100e2e4')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082890, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082890"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082890 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (9.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082890 ORDER BY id ASC
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082890 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:39', NULL, 969082890, 'BorrowDirect', 'in_progress', '2015-02-23 18:24:39')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2852
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082890, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083169 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083169)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 62.7ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf1d696df61ce793117617205d50804f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mDispatchedService Load (4.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082890 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:39', '121212')
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083170, 'journal')
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2852[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'isbn', 1, '121212', 969083170, '121212')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014188[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (9.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083170, 'bf1d696df61ce793117617205d50804f')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082891"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082891 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (9.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082891 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082891, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083170 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083170)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082891&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A24%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 38ms (ActiveRecord: 30.5ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '66609c80cbbdde47c6ddeb6cbb88bd8b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:39', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083171, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'title', 1, 'title', 969083171, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'author', 1, 'au', 969083171, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083171, '66609c80cbbdde47c6ddeb6cbb88bd8b')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082892, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (9.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082892 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082892 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:39', NULL, 969082892, 'test_bd', 'successful', '2015-02-23 18:24:39')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:39' WHERE `dispatched_services`.`id` = 2853[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082892[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18bf8a50fe7be17623080b6f6fdc83ff' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:39', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'format', 'journal', 969083172, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'title', 1, 'title', 969083172, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:39', 'author', 1, 'au', 969083172, 'au')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:24:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083172, '18bf8a50fe7be17623080b6f6fdc83ff')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:39', 969082893, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (9.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082893 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082893, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082893 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:40', NULL, 969082893, 'test_bd', 'successful', '2015-02-23 18:24:40')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:40' WHERE `dispatched_services`.`id` = 2854
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082893
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '898b7107dc037355969490e1c11d2a0c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:24:40', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'format', 'journal', 969083173, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'title', 1, 'title', 969083173, 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'author', 1, 'au', 969083173, 'au')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:24:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083173, '898b7107dc037355969490e1c11d2a0c')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:24:40', 969082894, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082894 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082894, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082894 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:40', NULL, 969082894, 'test_bd', 'successful', '2015-02-23 18:24:40')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:40' WHERE `dispatched_services`.`id` = 2855[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082894[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53cb8839868c0a3f9f84a020dbeaeadd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:24:40', '9789810743734')
[1m[36mSQL (8.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'format', 'journal', 969083174, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:24:40', 'isbn', 1, '9789810743734', 969083174, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:24:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083174, '53cb8839868c0a3f9f84a020dbeaeadd')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (9.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082895 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:24:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082895, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082895 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:24:40', NULL, 969082895, 'test_bd', 'successful', '2015-02-23 18:24:40')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:24:40' WHERE `dispatched_services`.`id` = 2856
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082895
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2853c33692017b06eda7f680d1f5c12' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:36', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083175, 'journal')[0m
[1m[35mSQL (10.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'title', 1, 'title', 969083175, 'title')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'author', 1, 'au', 969083175, 'au')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:28:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083175, 'e2853c33692017b06eda7f680d1f5c12')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:36', 969082896, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (8.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082896 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082896, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082896 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082896, 'test_bd', 'successful', '2015-02-23 18:28:36')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2857
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082896
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5f7421a423abbcd44240fb0e6456261e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:36', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083176, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'title', 1, 'title', 969083176, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'author', 1, 'au', 969083176, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:28:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083176, '5f7421a423abbcd44240fb0e6456261e')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:36', 969082897, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (8.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082897 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082897, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082897 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082897, 'test_bd', 'successful', '2015-02-23 18:28:36')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2858[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082897[0m
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80300139be93a5eb96bed7b15d53a6ce' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:36', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083177, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'title', 1, 'title', 969083177, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'author', 1, 'au', 969083177, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:28:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083177, '80300139be93a5eb96bed7b15d53a6ce')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:36', 969082898, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mServiceResponse Load (9.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082898 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082898 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082898, 'test_bd', 'successful', '2015-02-23 18:28:36')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2859[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082898[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '688082973e2a91b37a8c7f3b0ac18767' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:36', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083178, 'journal')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'title', 1, 'title', 969083178, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'author', 1, 'au', 969083178, 'au')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-23 18:28:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083178, '688082973e2a91b37a8c7f3b0ac18767')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:36', 969082899, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082899, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082899 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082899, 'test_bd', 'successful', '2015-02-23 18:28:36')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2860[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082899[0m
[1m[35mServiceResponse Load (9.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082899 ORDER BY id ASC
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '977a52658160ff3bbf5ef1e790c7c75f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:36', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'format', 'journal', 969083179, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:36', 'isbn', 1, '9789810743734', 969083179, '9789810743734')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083179, '977a52658160ff3bbf5ef1e790c7c75f')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082900[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:36', NULL, 969082900, 'test_bd', 'queued', '2015-02-23 18:28:36')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:36' WHERE `dispatched_services`.`id` = 2861
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082900 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083179)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083179)
[1m[36mServiceResponse Load (10.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082900) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082900)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082900 AND `dispatched_services`.`id` = 2861 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082900, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2861
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082900 LIMIT 1
[1m[36mDispatchedService Load (6.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (3.4ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083179 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083179)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (1.7ms)
[1m[36mServiceResponse Load (10.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082900 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (12.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082900 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/index.html.erb within layouts/umlaut (69.1ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083179[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082900[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 457ms (Views: 138.4ms | ActiveRecord: 126.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-23 13:28:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a08a6e8bf9c4ca741e29787b5d1aacd' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:37', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'format', 'book', 969083180, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'genre', 1, 'book', 969083180, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'author', 1, 'smith', 969083180, 'Smith')
[1m[36mSQL (6.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'title', 1, 'some book', 969083180, 'Some Book')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-23 18:28:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083180, '1a08a6e8bf9c4ca741e29787b5d1aacd')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082901[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:37', NULL, 969082901, 'BorrowDirect', 'queued', '2015-02-23 18:28:37')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2862
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082901 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083180)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083180)
[1m[36mServiceResponse Load (9.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082901) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082901)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082901 AND `dispatched_services`.`id` = 2862 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082901, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2862
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082901 LIMIT 1
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083180 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083180)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (58.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (9.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082901 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082901 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083180[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082901[0m
[1m[35m (15.3ms)[0m COMMIT
Completed 200 OK in 346ms (Views: 17.7ms | ActiveRecord: 189.9ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-23 13:28:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2a1a942b0b77e7cce6c8fc60f1ba8ef' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:37', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'format', 'journal', 969083181, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'genre', 1, 'article', 969083181, 'article')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'title', 1, 'foo', 969083181, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'author', 1, 'bar', 969083181, 'bar')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-23 18:28:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083181, 'e2a1a942b0b77e7cce6c8fc60f1ba8ef')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082902[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:37', NULL, 969082902, 'BorrowDirect', 'queued', '2015-02-23 18:28:37')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2863
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082902 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083181)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083181)
[1m[36mServiceResponse Load (9.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082902) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082902)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082902 AND `dispatched_services`.`id` = 2863 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2863[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082902 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083181 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083181)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (9.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082902 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082902 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083181
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082902
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 219ms (Views: 16.5ms | ActiveRecord: 124.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a96cbfd4741350d6284d1607534b167a' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:37', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'format', 'book', 969083182, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'genre', 1, 'book', 969083182, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:37', 'title', 1, 'foo', 969083182, 'foo')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-23 18:28:37', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083182, 'a96cbfd4741350d6284d1607534b167a')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082903 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:37', NULL, 969082903, 'BorrowDirect', 'failed_fatal', '2015-02-23 18:28:37')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:37' WHERE `dispatched_services`.`id` = 2864[0m
[1m[35m (14.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969082903" for 127.0.0.1 at 2015-02-23 13:28:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082903"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082903 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083182 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083182)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082903[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082903[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082903 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082903[0m [["request_id", 969082903]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083182 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083182)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (12.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082903 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (13.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082903 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083182
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969082903
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 80ms (Views: 17.7ms | ActiveRecord: 54.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3cf99eeba08e15ca7bfebf9898ac4b2a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:38', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'format', 'journal', 969083183, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'isbn', 1, '9789810743734', 969083183, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083183, '3cf99eeba08e15ca7bfebf9898ac4b2a')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082904
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:38', NULL, 969082904, 'BorrowDirect', 'queued', '2015-02-23 18:28:38')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2865[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083183)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183)[0m
[1m[35mServiceResponse Load (10.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082904) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082904)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`id` = 2865 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082904, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:38', 'Choose your delivery location', 969082904, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2865
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083183 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082904 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (48.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (48.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083183
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082904
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 315ms (Views: 66.0ms | ActiveRecord: 124.0ms)
Started GET "/borrow_direct/BorrowDirect/969082904?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:28:38 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082904"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082904 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2865
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:38', 969082904, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083183 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082904&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 49ms (ActiveRecord: 39.2ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (2.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2865[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014207
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082904&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:28:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082904", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:28:38-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083183 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082904
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082904 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 [["request_id", 969082904]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083183 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083183)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (10.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082904 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082904 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083183[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082904[0m
[1m[35m (15.2ms)[0m COMMIT
Completed 200 OK in 82ms (Views: 19.3ms | ActiveRecord: 54.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-23 13:28:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '19bacd604c886a43d7b5581b03f60c10' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:38', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'format', 'journal', 969083184, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'isbn', 1, '0109836413', 969083184, '0109836413')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:28:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083184, '19bacd604c886a43d7b5581b03f60c10')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082905[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:38', NULL, 969082905, 'BorrowDirect', 'queued', '2015-02-23 18:28:38')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2866
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082905 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083184)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083184)
[1m[36mServiceResponse Load (9.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082905) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082905)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082905 AND `dispatched_services`.`id` = 2866 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082905, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:38', 'This item is not currently available from BorrowDirect', 969082905, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2866[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082905 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083184 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083184)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082905 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082905 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083184
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082905
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 267ms (Views: 19.7ms | ActiveRecord: 127.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84f4211814cafdcc9b979264842cb829' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:38', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'format', 'journal', 969083185, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:38', 'isbn', 1, '9789810743734', 969083185, '9789810743734')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083185, '84f4211814cafdcc9b979264842cb829')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082906
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:38', NULL, 969082906, 'BorrowDirect', 'queued', '2015-02-23 18:28:38')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:38' WHERE `dispatched_services`.`id` = 2867[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083185)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185)[0m
[1m[35mServiceResponse Load (9.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082906) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082906)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`id` = 2867 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082906, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 'Choose your delivery location', 969082906, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2867
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083185 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (10.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082906 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (44.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (47.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083185
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082906
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 308ms (Views: 62.6ms | ActiveRecord: 122.1ms)
Started GET "/borrow_direct/BorrowDirect/969082906?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-23 13:28:39 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969082906"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082906 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2867
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 969082906, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083185 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185)
Redirected to http://www.example.com/resolve?umlaut.request_id=969082906&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 54ms (ActiveRecord: 38.2ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2867[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070014212
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969082906&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:28:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082906", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:28:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083185 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082906
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082906 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 [["request_id", 969082906]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083185 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083185)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (10.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082906 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082906 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083185[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082906[0m
[1m[35m (15.0ms)[0m COMMIT
Completed 200 OK in 80ms (Views: 17.4ms | ActiveRecord: 52.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e712327eae3abe4bcce1a86780385f27' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:39', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:39', 'format', 'journal', 969083186, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:39', 'isbn', 1, '9789810743734', 969083186, '9789810743734')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083186, 'e712327eae3abe4bcce1a86780385f27')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082907[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:39', NULL, 969082907, 'BorrowDirect', 'queued', '2015-02-23 18:28:39')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2868
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082907 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083186)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083186)
[1m[36mServiceResponse Load (9.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082907) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082907)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082907 AND `dispatched_services`.`id` = 2868 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082907, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 'Choose your delivery location', 969082907, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2868[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082907 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083186 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083186)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (10.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082907 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (11.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082907 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082907 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083186[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082907[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 264ms (Views: 21.1ms | ActiveRecord: 122.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-23 13:28:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '146ccdf22feb0d757b05de12591a6393' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:39', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:39', 'format', 'journal', 969083187, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:39', 'isbn', 1, '9789810743734', 969083187, '9789810743734')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969083187, '146ccdf22feb0d757b05de12591a6393')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082908[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:39', NULL, 969082908, 'BorrowDirect', 'queued', '2015-02-23 18:28:39')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2869
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969083187)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187)
[1m[36mServiceResponse Load (9.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969082908) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969082908)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`id` = 2869 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082908, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 'Choose your delivery location', 969082908, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-23 18:28:39' WHERE `dispatched_services`.`id` = 2869[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (2.6ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083187 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (9.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082908 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (42.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (45.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (46.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (47.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083187[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082908[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 307ms (Views: 22.8ms | ActiveRecord: 162.9ms)
Started GET "/borrow_direct/BorrowDirect/969082908" for 127.0.0.1 at 2015-02-23 13:28:39 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082908"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082908 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:39', 969082908, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083187 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969082908&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.7ms)
Started GET "/resolve?umlaut.request_id=969082908&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-23 13:28:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969082908", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-23T13:28:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083187 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082908
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 [["request_id", 969082908]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083187 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083187)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (9.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082908 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (10.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082908 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082908 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969083187
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969082908
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 82ms (Views: 20.9ms | ActiveRecord: 52.0ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3cc97ee6f2c6b61fc142f3e5fd3bc75e' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-23 18:28:40', 'biological foundations of language', '1967')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'book', 969083188, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'auinit', 1, 'eh', 969083188, 'EH')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'aulast', 1, 'lenneberg', 969083188, 'Lenneberg')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'title', 1, 'biological foundations of language', 969083188, 'Biological foundations of language')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'genre', 1, 'book', 969083188, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'date', 1, '1967', 969083188, '1967')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083188, 'info:sid/google', '3cc97ee6f2c6b61fc142f3e5fd3bc75e')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (9.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082909 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082909, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082909 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:40', NULL, 969082909, 'test_bd', 'successful', '2015-02-23 18:28:40')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2870
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082909
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5054f07e795e54b44d1b7e8a3629ba95' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-23 18:28:40', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083189, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'auinit', 1, 'rd', 969083189, 'RD')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'aulast', 1, 'kaplan', 969083189, 'Kaplan')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'atitle', 1, 'the coming anarchy', 969083189, 'The coming anarchy')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'title', 1, 'the atlantic monthly', 969083189, 'The Atlantic monthly')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'volume', 1, '273', 969083189, '273')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'issue', 1, '2', 969083189, '2')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'date', 1, '1994', 969083189, '1994')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'spage', 1, '44', 969083189, '44')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'issn', 1, '1072-7825', 969083189, '1072-7825')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083189, 'info:sid/google', '5054f07e795e54b44d1b7e8a3629ba95')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082910 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:40', NULL, 969082910, 'test_bd', 'successful', '2015-02-23 18:28:40')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2871[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082910[0m
[1m[35mServiceResponse Exists (3.7ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969082910 LIMIT 1
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c08a2e23fe3192fc7027b6d00a6ee1c9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-23 18:28:40', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083190, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969083190, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'aulast', 1, 'grimes', 969083190, 'Grimes')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (12.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083190, 'c08a2e23fe3192fc7027b6d00a6ee1c9')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082911, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082911 ORDER BY id ASC
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbbab16c5fabd5dbb99b8fa9f60e9472' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083191, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '9789810743734', 969083191, '9789810743734')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083191, 'dbbab16c5fabd5dbb99b8fa9f60e9472')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082912 ORDER BY id ASC
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082912, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082912 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:40', NULL, 969082912, 'test_bd', 'successful', '2015-02-23 18:28:40')
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2872[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082912[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b5c19c64c13d1abdbc03a1cda5f8d004' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083192, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '121212', 969083192, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083192, 'b5c19c64c13d1abdbc03a1cda5f8d004')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082913"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082913 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (10.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082913 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969082913
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082913, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969082913\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083192 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083192)
Redirected to http://test.host/resolve?umlaut.request_id=969082913&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 40ms (ActiveRecord: 33.2ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfbb0c83773f77afda8190fe0d7a1e18' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083193, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '121212', 969083193, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083193, 'bfbb0c83773f77afda8190fe0d7a1e18')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082914, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969082914"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082914 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (9.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082914 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070014222
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082914, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070014222\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083193 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083193)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082914&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 36ms (ActiveRecord: 30.0ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5719e78c298bb114edaa6df79520dad7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083194, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '121212', 969083194, '121212')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083194, '5719e78c298bb114edaa6df79520dad7')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082915, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082915"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082915 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (9.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082915 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082915 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:40', NULL, 969082915, 'BorrowDirect', 'in_progress', '2015-02-23 18:28:40')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2873[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:40', 969082915, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083194 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083194)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969082915&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 79ms (ActiveRecord: 68.2ms)
[1m[35mDispatchedService Load (2.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082915
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082915 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36mServiceResponse Load (10.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082915 ORDER BY id ASC[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:28:40' WHERE `dispatched_services`.`id` = 2873
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014225[0m
[1m[35m (15.5ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a508ac8b394cc21a2ffcc98c29a54c4b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (9.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:40', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'format', 'journal', 969083195, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:40', 'isbn', 1, '121212', 969083195, '121212')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083195, 'a508ac8b394cc21a2ffcc98c29a54c4b')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082916, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082916"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082916 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (9.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082916 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082916 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082916, 'BorrowDirect', 'in_progress', '2015-02-23 18:28:41')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2874
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082916, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083195 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083195)
Redirected to http://example.org
Completed 302 Found in 76ms (ActiveRecord: 63.7ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae93a841ac6911f41849fdddf6bd05f6' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083196, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '121212', 969083196, '121212')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083196, 'ae93a841ac6911f41849fdddf6bd05f6')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082917, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969082917"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082917 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (9.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082917 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082917, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 31ms (ActiveRecord: 26.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '157ea340710962a04146896e11ea4dce' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083197, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '121212', 969083197, '121212')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083197, '157ea340710962a04146896e11ea4dce')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082918, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969082918"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082918 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (10.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082918 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082918 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082918, 'BorrowDirect', 'in_progress', '2015-02-23 18:28:41')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2875[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082918, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083197 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083197)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 77ms (Views: 0.3ms | ActiveRecord: 63.8ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ebedc44a2f667b81257a0f6900c7b4ce' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082918 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36m (2.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '121212')
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2875[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083198, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '121212', 969083198, '121212')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070014231
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083198, 'ebedc44a2f667b81257a0f6900c7b4ce')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969082919"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969082919 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (8.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082919 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 969082919, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969083198 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969083198)
Redirected to http://test.host/resolve?umlaut.request_id=969082919&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-23T13%3A28%3A41-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 36ms (ActiveRecord: 29.3ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dab237a9a162111f7da2a9d916f095c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083199, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '9789810743734', 969083199, '9789810743734')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083199, 'dab237a9a162111f7da2a9d916f095c0')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (9.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082920 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082920, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082920 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082920, 'test_bd', 'failed_temporary', '2015-02-23 18:28:41')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (105.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-9f8b798a45c9/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-a0251215ddc1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2876[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082920[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c505bf4617ec6be129a6c0fbe9fd9a19' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083200, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '0109836413', 969083200, '0109836413')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083200, 'c505bf4617ec6be129a6c0fbe9fd9a19')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mServiceResponse Load (9.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082921 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082921, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 'This item is not currently available from BorrowDirect', 969082921, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082921 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082921, 'test_bd', 'successful', '2015-02-23 18:28:41')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2877[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082921[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f2439ecb2ae2d2a1c438a69cb153081a' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:41', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'format', 'journal', 969083201, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:41', 'isbn', 1, '000000000', 969083201, '000000000')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-23 18:28:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083201, 'f2439ecb2ae2d2a1c438a69cb153081a')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (10.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082922 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082922, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:41', 'This item is not currently available from BorrowDirect', 969082922, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082922 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:41', NULL, 969082922, 'test_bd', 'successful', '2015-02-23 18:28:41')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:41' WHERE `dispatched_services`.`id` = 2878[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082922[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ded0d4c0e99633e230ad036479748f36' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-23 18:28:42', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:42', 'format', 'journal', 969083202, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-23 18:28:42', 'isbn', 1, '9789810743734', 969083202, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-23 18:28:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969083202, 'ded0d4c0e99633e230ad036479748f36')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (10.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969082923 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-23 18:28:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969082923, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-23 18:28:42', 'Choose your delivery location', 969082923, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082923 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-23 18:28:42', NULL, 969082923, 'test_bd', 'successful', '2015-02-23 18:28:42')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-23 18:28:42' WHERE `dispatched_services`.`id` = 2879[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969082923[0m
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a3e40bd695bb4d5c50f9df5d57f0ccd9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:52:59', 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:52:59', 'format', 'journal', 969085171, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:52:59', 'title', 1, 'title', 969085171, 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:52:59', 'author', 1, 'au', 969085171, 'au')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:52:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085171, 'a3e40bd695bb4d5c50f9df5d57f0ccd9')
[1m[36m (35.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:00', 969084572, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (22.3ms)[0m COMMIT
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084572 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084572, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084572 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084572, 'test_bd', 'successful', '2015-02-24 15:53:00')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4136
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084572
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f41c3845470512a379036609975f6a79' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:00', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085172, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'title', 969085172, 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'author', 1, 'au', 969085172, 'au')
[1m[36m (26.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085172, 'f41c3845470512a379036609975f6a79')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:00', 969084573, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (22.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084573 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084573 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084573, 'test_bd', 'successful', '2015-02-24 15:53:00')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4137
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084573
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '42617fabd7c5ea73739554e365216054' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:00', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085173, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'title', 969085173, 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'author', 1, 'au', 969085173, 'au')
[1m[36m (22.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085173, '42617fabd7c5ea73739554e365216054')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:00', 969084574, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084574 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084574, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (24.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084574 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084574, 'test_bd', 'successful', '2015-02-24 15:53:00')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4138[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084574[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c10e0d3f54897f06e2ca4e2a1eddf62c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:00', 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085174, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'title', 969085174, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'author', 1, 'au', 969085174, 'au')[0m
[1m[35m (25.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085174, 'c10e0d3f54897f06e2ca4e2a1eddf62c')
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:00', 969084575, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (38.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084575, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (56.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084575 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084575, 'test_bd', 'successful', '2015-02-24 15:53:00')
[1m[36m (36.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4139[0m
[1m[35m (26.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084575[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084575 ORDER BY id ASC
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14b83a57f4ef6bb88efa98f2fc0773cb' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 15:53:00', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085175, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'auinit', 1, 'rd', 969085175, 'RD')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'aulast', 1, 'kaplan', 969085175, 'Kaplan')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'atitle', 1, 'the coming anarchy', 969085175, 'The coming anarchy')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'the atlantic monthly', 969085175, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'volume', 1, '273', 969085175, '273')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'issue', 1, '2', 969085175, '2')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'date', 1, '1994', 969085175, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'spage', 1, '44', 969085175, '44')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'issn', 1, '1072-7825', 969085175, '1072-7825')[0m
[1m[35m (21.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085175, 'info:sid/google', '14b83a57f4ef6bb88efa98f2fc0773cb')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084576 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:00', NULL, 969084576, 'test_bd', 'successful', '2015-02-24 15:53:00')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:00' WHERE `dispatched_services`.`id` = 4140[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mDispatchedService Load (3.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084576[0m
[1m[35mServiceResponse Exists (1.2ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084576 LIMIT 1
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecc72f1a37a9bbb6830bf1c69b813bf1' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:00', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'format', 'journal', 969085176, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085176, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:00', 'aulast', 1, 'grimes', 969085176, 'Grimes')
[1m[36m (22.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 15:53:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085176, 'ecc72f1a37a9bbb6830bf1c69b813bf1')[0m
[1m[35m (42.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084577, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')
[1m[36m (32.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084577 ORDER BY id ASC
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b4488798862d078bf400bdf1f5db07a3' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 15:53:01', 'biological foundations of language', '1967')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'book', 969085177, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'auinit', 1, 'eh', 969085177, 'EH')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'aulast', 1, 'lenneberg', 969085177, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'title', 1, 'biological foundations of language', 969085177, 'Biological foundations of language')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'genre', 1, 'book', 969085177, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'date', 1, '1967', 969085177, '1967')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085177, 'info:sid/google', 'b4488798862d078bf400bdf1f5db07a3')
[1m[36m (26.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084578 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084578, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084578 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084578, 'test_bd', 'successful', '2015-02-24 15:53:01')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4141[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084578[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d7a5db912c316e49c236cd81f640e19' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085178, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '9789810743734', 969085178, '9789810743734')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085178, '9d7a5db912c316e49c236cd81f640e19')[0m
[1m[35m (23.2ms)[0m COMMIT
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084579 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084579, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.5ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084579 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084579, 'test_bd', 'failed_temporary', '2015-02-24 15:53:01')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4142
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084579
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6ddce4c4373a6bd4ba12008b375a1189' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085179, 'journal')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '000000000', 969085179, '000000000')[0m
[1m[35m (24.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085179, '6ddce4c4373a6bd4ba12008b375a1189')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084580 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084580, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:01', 'This item is not currently available from BorrowDirect', 969084580, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084580 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084580, 'test_bd', 'successful', '2015-02-24 15:53:01')[0m
[1m[35m (23.0ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4143
[1m[36m (32.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084580
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee9fe997fa831f9daaa9c58757e999ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085180, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '9789810743734', 969085180, '9789810743734')[0m
[1m[35m (21.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085180, 'ee9fe997fa831f9daaa9c58757e999ff')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084581 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084581, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:01', 'Choose your delivery location', 969084581, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084581 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084581, 'test_bd', 'successful', '2015-02-24 15:53:01')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4144
[1m[36m (22.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084581
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cbc5d522554d9835cc752be084af22fa' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085181, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '0109836413', 969085181, '0109836413')[0m
[1m[35m (21.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085181, 'cbc5d522554d9835cc752be084af22fa')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084582 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084582, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (24.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:01', 'This item is not currently available from BorrowDirect', 969084582, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (56.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084582 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084582, 'test_bd', 'successful', '2015-02-24 15:53:01')[0m
[1m[35m (24.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4145
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084582
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '78cbbe4b0d62d261592f2245024490d2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:01', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'format', 'journal', 969085182, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:01', 'isbn', 1, '9789810743734', 969085182, '9789810743734')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085182, '78cbbe4b0d62d261592f2245024490d2')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084583 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084583, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084583 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:01', NULL, 969084583, 'test_bd', 'successful', '2015-02-24 15:53:01')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:01' WHERE `dispatched_services`.`id` = 4146[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084583[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 18ms (Views: 17.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.4ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26a17da0beb2ca38ea37413e61150bca' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085183, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085183, '121212')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085183, '26a17da0beb2ca38ea37413e61150bca')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084584"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084584 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084584 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969084584
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084584, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084584\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085183 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085183)
Redirected to http://test.host/resolve?umlaut.request_id=969084584&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 43ms (ActiveRecord: 26.5ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7ec2e6afce791f20916cbf40645a41a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085184, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085184, '121212')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085184, 'e7ec2e6afce791f20916cbf40645a41a')
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084585, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084585"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084585 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084585 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016108
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084585, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016108\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085184 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085184)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084585&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 25.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (2.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b1953bc3ab8b8e358fd6a5f8ce3cd207' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085185, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085185, '121212')
[1m[36m (21.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085185, 'b1953bc3ab8b8e358fd6a5f8ce3cd207')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084586, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084586"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084586 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084586 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084586 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:02', NULL, 969084586, 'BorrowDirect', 'in_progress', '2015-02-24 15:53:02')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4147[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084586, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085185 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085185)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084586&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 78ms (ActiveRecord: 68.1ms)
[1m[35mDispatchedService Load (5.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084586
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084586 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084586 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4147
[1m[36m (27.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016111[0m
[1m[35m (17.9ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39d94a89dbfdd2a537d2aa6371d0dbe2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085186, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085186, '121212')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085186, '39d94a89dbfdd2a537d2aa6371d0dbe2')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084587, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084587"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084587 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084587 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084587 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:02', NULL, 969084587, 'BorrowDirect', 'in_progress', '2015-02-24 15:53:02')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4148
[1m[36m (22.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084587, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085186 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085186)
Redirected to http://example.org
Completed 302 Found in 86ms (ActiveRecord: 75.8ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d57f5e9811e670c4b9fc59be23e805c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084587 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35m (2.4ms)[0m BEGIN
[1m[36mSQL (2.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085187, 'journal')
[1m[36mSQL (2.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4148[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085187, '121212')
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016113[0m
[1m[35m (27.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085187, '0d57f5e9811e670c4b9fc59be23e805c')
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084588, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084588"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084588 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084588 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084588, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.9ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 28ms (ActiveRecord: 23.7ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31b9c446fc80acac8f29a697eec01d9e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:02', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'format', 'journal', 969085188, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:02', 'isbn', 1, '121212', 969085188, '121212')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:02', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085188, '31b9c446fc80acac8f29a697eec01d9e')
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084589, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084589"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084589 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084589 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084589 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:02', NULL, 969084589, 'BorrowDirect', 'in_progress', '2015-02-24 15:53:02')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:02' WHERE `dispatched_services`.`id` = 4149
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:02', 969084589, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085188 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085188)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 81ms (Views: 0.3ms | ActiveRecord: 71.0ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2921dd920ac16f70e77bcd09b5bcae7b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mDispatchedService Load (3.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084589 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (3.6ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:03', '121212')[0m
[1m[35mSQL (1.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:53:03' WHERE `dispatched_services`.`id` = 4149
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:03', 'format', 'journal', 969085189, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:03', 'isbn', 1, '121212', 969085189, '121212')
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016117[0m
[1m[35m (26.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:53:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085189, '2921dd920ac16f70e77bcd09b5bcae7b')
[1m[36m (23.8ms)[0m [1mCOMMIT[0m
[1m[35m (23.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084590"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084590 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084590 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:03', 969084590, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085189 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085189)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084590&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '886875acfbd312cdb9f80f7ad67bc97e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:03', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:03', 'format', 'journal', 969085190, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:03', 'isbn', 1, '9789810743734', 969085190, '9789810743734')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085190, '886875acfbd312cdb9f80f7ad67bc97e')[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084591
[1m[36m (21.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:03', NULL, 969084591, 'test_bd', 'queued', '2015-02-24 15:53:03')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:03' WHERE `dispatched_services`.`id` = 4150[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084591 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085190)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085190)[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084591) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084591)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (79.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084591 AND `dispatched_services`.`id` = 4150 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084591, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (33.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.1s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:53:03' WHERE `dispatched_services`.`id` = 4150[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084591 LIMIT 1[0m
[1m[35mDispatchedService Load (10.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085190 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085190)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084591 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084591 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.7ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085190
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (13.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084591
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 3575ms (Views: 3025.4ms | ActiveRecord: 149.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:53:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8392b19cece587b16cbae8f7758e04b7' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:06', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:06', 'format', 'book', 969085191, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:06', 'genre', 1, 'book', 969085191, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:06', 'author', 1, 'smith', 969085191, 'Smith')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:06', 'title', 1, 'some book', 969085191, 'Some Book')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:53:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085191, '8392b19cece587b16cbae8f7758e04b7')[0m
[1m[35m (26.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084592
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:06', NULL, 969084592, 'BorrowDirect', 'queued', '2015-02-24 15:53:06')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:06' WHERE `dispatched_services`.`id` = 4151[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084592 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085191)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085191)[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084592) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084592)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084592 AND `dispatched_services`.`id` = 4151 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084592, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (25.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:06' WHERE `dispatched_services`.`id` = 4151[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084592 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085191 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085191)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084592 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084592 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085191
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084592
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 283ms (Views: 19.4ms | ActiveRecord: 151.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:53:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3035a9d2fb56b3fd773a86e12ce291fa' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:07', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'format', 'journal', 969085192, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'genre', 1, 'article', 969085192, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'title', 1, 'foo', 969085192, 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'author', 1, 'bar', 969085192, 'bar')
[1m[36m (23.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:53:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085192, '3035a9d2fb56b3fd773a86e12ce291fa')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084593
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:07', NULL, 969084593, 'BorrowDirect', 'queued', '2015-02-24 15:53:07')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4152[0m
[1m[35m (24.3ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084593 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085192)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085192)[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084593) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084593)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (22.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084593 AND `dispatched_services`.`id` = 4152 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4152
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084593 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085192 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085192)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084593 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084593 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085192
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084593
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 248ms (Views: 16.6ms | ActiveRecord: 149.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8809ce70bdf6975daa31f9b22abcb9e3' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:53:07', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'format', 'book', 969085193, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'genre', 1, 'book', 969085193, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'title', 1, 'foo', 969085193, 'foo')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:53:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085193, '8809ce70bdf6975daa31f9b22abcb9e3')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084594 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:07', NULL, 969084594, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:53:07')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4153[0m
[1m[35m (24.4ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084594" for 127.0.0.1 at 2015-02-24 10:53:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084594"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084594 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085193 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085193)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084594[0m
[1m[35m (25.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084594[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084594 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084594[0m [["request_id", 969084594]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085193 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085193)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084594 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084594 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085193
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084594
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 87ms (Views: 17.8ms | ActiveRecord: 61.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '46f355a34d235d33384e3337998aab28' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:07', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'format', 'journal', 969085194, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:07', 'isbn', 1, '9789810743734', 969085194, '9789810743734')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085194, '46f355a34d235d33384e3337998aab28')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084595
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:07', NULL, 969084595, 'BorrowDirect', 'queued', '2015-02-24 15:53:07')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4154[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085194)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194)[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084595) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084595)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`id` = 4154 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084595, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:07', 'Choose your delivery location', 969084595, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4154
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085194 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084595 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (44.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085194
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084595
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 341ms (Views: 68.8ms | ActiveRecord: 141.4ms)
Started GET "/borrow_direct/BorrowDirect/969084595?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 10:53:07 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084595"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084595 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4154
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:07', 969084595, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085194 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084595&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 62ms (ActiveRecord: 47.7ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:53:07' WHERE `dispatched_services`.`id` = 4154[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016123
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084595&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:53:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084595", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:53:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085194 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084595
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084595 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 [["request_id", 969084595]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085194 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085194)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084595 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084595 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085194[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084595[0m
[1m[35m (18.6ms)[0m COMMIT
Completed 200 OK in 80ms (Views: 20.8ms | ActiveRecord: 50.3ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 10:53:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7dbfef60b529135b5761d41c134d704f' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:08', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'format', 'journal', 969085195, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'isbn', 1, '0109836413', 969085195, '0109836413')[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 15:53:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085195, '7dbfef60b529135b5761d41c134d704f')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084596[0m
[1m[35m (22.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:08', NULL, 969084596, 'BorrowDirect', 'queued', '2015-02-24 15:53:08')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4155
[1m[36m (22.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084596 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085195)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085195)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084596) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084596)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084596 AND `dispatched_services`.`id` = 4155 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084596, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:08', 'This item is not currently available from BorrowDirect', 969084596, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4155[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084596 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085195 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085195)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084596 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084596 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085195
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084596
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 298ms (Views: 20.4ms | ActiveRecord: 146.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81ed729cf181cab78beed37548242af4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:08', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'format', 'journal', 969085196, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'isbn', 1, '9789810743734', 969085196, '9789810743734')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085196, '81ed729cf181cab78beed37548242af4')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084597
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:08', NULL, 969084597, 'BorrowDirect', 'queued', '2015-02-24 15:53:08')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4156[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085196)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196)[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084597) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084597)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`id` = 4156 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084597, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:08', 'Choose your delivery location', 969084597, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4156
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085196 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084597 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085196
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084597
[1m[36m (21.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 295ms (Views: 23.4ms | ActiveRecord: 142.3ms)
Started GET "/borrow_direct/BorrowDirect/969084597?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 10:53:08 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084597"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084597 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4156
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:08', 969084597, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085196 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084597&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 58ms (ActiveRecord: 47.6ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:08' WHERE `dispatched_services`.`id` = 4156[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016128
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084597&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:53:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084597", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:53:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085196 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084597
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084597 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 [["request_id", 969084597]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085196 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085196)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084597 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084597 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085196[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084597[0m
[1m[35m (19.8ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 20.0ms | ActiveRecord: 51.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6946a028d2903f4cc8974eeed0348761' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:08', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'format', 'journal', 969085197, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:08', 'isbn', 1, '9789810743734', 969085197, '9789810743734')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085197, '6946a028d2903f4cc8974eeed0348761')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084598[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:09', NULL, 969084598, 'BorrowDirect', 'queued', '2015-02-24 15:53:09')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:09' WHERE `dispatched_services`.`id` = 4157
[1m[36m (24.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084598 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085197)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085197)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084598) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084598)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (21.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084598 AND `dispatched_services`.`id` = 4157 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084598, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:09', 'Choose your delivery location', 969084598, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:09' WHERE `dispatched_services`.`id` = 4157[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084598 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085197 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085197)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084598 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084598 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084598 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085197[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084598[0m
[1m[35m (20.2ms)[0m COMMIT
Completed 200 OK in 307ms (Views: 22.7ms | ActiveRecord: 147.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:53:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf76532f92e3f436661ec8f94f0772c9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:53:09', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:09', 'format', 'journal', 969085198, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:53:09', 'isbn', 1, '9789810743734', 969085198, '9789810743734')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:53:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085198, 'bf76532f92e3f436661ec8f94f0772c9')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084599[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:53:09', NULL, 969084599, 'BorrowDirect', 'queued', '2015-02-24 15:53:09')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:53:09' WHERE `dispatched_services`.`id` = 4158
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085198)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084599) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084599)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`id` = 4158 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:53:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084599, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:09', 'Choose your delivery location', 969084599, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (25.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:53:09' WHERE `dispatched_services`.`id` = 4158[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085198 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084599 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085198[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084599[0m
[1m[35m (18.9ms)[0m COMMIT
Completed 200 OK in 297ms (Views: 20.9ms | ActiveRecord: 141.5ms)
Started GET "/borrow_direct/BorrowDirect/969084599" for 127.0.0.1 at 2015-02-24 10:53:09 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084599"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084599 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:53:09', 969084599, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085198 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084599&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 78ms (ActiveRecord: 26.7ms)
Started GET "/resolve?umlaut.request_id=969084599&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A53%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:53:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084599", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:53:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085198 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084599
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 [["request_id", 969084599]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085198 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085198)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084599 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084599 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084599 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085198
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084599
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 86ms (Views: 23.0ms | ActiveRecord: 54.0ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '16cde4d208dc55761f8b4e2681a4856b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:34', 'title')
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'format', 'journal', 969085199, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'title', 1, 'title', 969085199, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'author', 1, 'au', 969085199, 'au')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:56:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085199, '16cde4d208dc55761f8b4e2681a4856b')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:34', 969084600, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084600 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084600 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:34', NULL, 969084600, 'test_bd', 'successful', '2015-02-24 15:56:34')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:34' WHERE `dispatched_services`.`id` = 4159[0m
[1m[35m (23.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084600[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c4378b6dabc9ed099352fc8f3f7bd8b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:34', 'title')
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'format', 'journal', 969085200, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'title', 1, 'title', 969085200, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:34', 'author', 1, 'au', 969085200, 'au')[0m
[1m[35m (21.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:56:34', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085200, '6c4378b6dabc9ed099352fc8f3f7bd8b')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:35', 969084601, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (26.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084601 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084601, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mDispatchedService Load (2.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084601 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:35', NULL, 969084601, 'test_bd', 'successful', '2015-02-24 15:56:35')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:35' WHERE `dispatched_services`.`id` = 4160
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084601
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41b3cbfc4525aa3bdee10af0119a9902' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:35', 'title')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'format', 'journal', 969085201, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'title', 1, 'title', 969085201, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'author', 1, 'au', 969085201, 'au')
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:56:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085201, '41b3cbfc4525aa3bdee10af0119a9902')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:35', 969084602, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (22.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084602 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084602, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (22.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084602 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:35', NULL, 969084602, 'test_bd', 'successful', '2015-02-24 15:56:35')
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:35' WHERE `dispatched_services`.`id` = 4161[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084602[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f52e502a52713c8395b38f84dad792dd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:35', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'format', 'journal', 969085202, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'isbn', 1, '9789810743734', 969085202, '9789810743734')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085202, 'f52e502a52713c8395b38f84dad792dd')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084603
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:35', NULL, 969084603, 'test_bd', 'queued', '2015-02-24 15:56:35')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:35' WHERE `dispatched_services`.`id` = 4162[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084603 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085202)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085202)[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084603) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084603)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (28.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084603 AND `dispatched_services`.`id` = 4162 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084603, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (19.9ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:56:35' WHERE `dispatched_services`.`id` = 4162[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084603 LIMIT 1[0m
[1m[35mDispatchedService Load (7.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085202 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085202)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084603 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084603 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (93.1ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085202[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084603[0m
[1m[35m (19.7ms)[0m COMMIT
Completed 200 OK in 499ms (Views: 143.3ms | ActiveRecord: 141.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:56:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63748949c2ed3c649f292640951ccecf' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:35', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'format', 'book', 969085203, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'genre', 1, 'book', 969085203, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'author', 1, 'smith', 969085203, 'Smith')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:35', 'title', 1, 'some book', 969085203, 'Some Book')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:56:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085203, '63748949c2ed3c649f292640951ccecf')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084604[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:35', NULL, 969084604, 'BorrowDirect', 'queued', '2015-02-24 15:56:35')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4163
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084604 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085203)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085203)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084604) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084604)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084604 AND `dispatched_services`.`id` = 4163 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084604, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4163
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084604 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085203 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085203)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084604 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084604 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085203[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084604[0m
[1m[35m (17.9ms)[0m COMMIT
Completed 200 OK in 270ms (Views: 19.7ms | ActiveRecord: 146.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:56:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6560b69f2a1abb3b04bcb995cc41570c' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:36', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'format', 'journal', 969085204, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'genre', 1, 'article', 969085204, 'article')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'title', 1, 'foo', 969085204, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'author', 1, 'bar', 969085204, 'bar')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:56:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085204, '6560b69f2a1abb3b04bcb995cc41570c')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084605[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:36', NULL, 969084605, 'BorrowDirect', 'queued', '2015-02-24 15:56:36')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4164
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084605 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085204)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085204)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084605) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084605)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (21.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084605 AND `dispatched_services`.`id` = 4164 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4164[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084605 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085204 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085204)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084605 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084605 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085204
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084605
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 245ms (Views: 17.9ms | ActiveRecord: 145.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '042305a0b39926425b11f5f8f9658599' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:36', 'foo')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'format', 'book', 969085205, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'genre', 1, 'book', 969085205, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'title', 1, 'foo', 969085205, 'foo')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:56:36', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085205, '042305a0b39926425b11f5f8f9658599')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084606 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:36', NULL, 969084606, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:56:36')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4165[0m
[1m[35m (19.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084606" for 127.0.0.1 at 2015-02-24 10:56:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084606"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084606 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085205 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085205)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084606[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084606[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084606 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084606[0m [["request_id", 969084606]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085205 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085205)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084606 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084606 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085205
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084606
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 81ms (Views: 17.8ms | ActiveRecord: 55.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb9c5654e4770b33c72d4568de979a39' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:36', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'format', 'journal', 969085206, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:36', 'isbn', 1, '9789810743734', 969085206, '9789810743734')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085206, 'eb9c5654e4770b33c72d4568de979a39')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084607
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:36', NULL, 969084607, 'BorrowDirect', 'queued', '2015-02-24 15:56:36')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4166[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085206)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206)[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084607) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084607)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`id` = 4166 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084607, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:36', 'Choose your delivery location', 969084607, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4166
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085206 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084607 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085206
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084607
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 297ms (Views: 25.2ms | ActiveRecord: 139.4ms)
Started GET "/borrow_direct/BorrowDirect/969084607?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 10:56:36 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084607"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084607 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 15:56:36' WHERE `dispatched_services`.`id` = 4166
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:37', 969084607, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085206 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084607&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 56ms (ActiveRecord: 46.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4166[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016143
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084607&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:56:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084607", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:56:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085206 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084607
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084607 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 [["request_id", 969084607]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085206 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085206)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084607 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084607 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085206[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084607[0m
[1m[35m (19.1ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 19.9ms | ActiveRecord: 51.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 10:56:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a749c87528421184c47a161fb07ed6e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:37', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:37', 'format', 'journal', 969085207, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:37', 'isbn', 1, '0109836413', 969085207, '0109836413')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 15:56:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085207, '8a749c87528421184c47a161fb07ed6e')
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084608[0m
[1m[35m (22.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:37', NULL, 969084608, 'BorrowDirect', 'queued', '2015-02-24 15:56:37')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4167
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084608 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085207)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085207)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084608) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084608)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084608 AND `dispatched_services`.`id` = 4167 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084608, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:37', 'This item is not currently available from BorrowDirect', 969084608, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4167[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084608 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085207 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085207)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084608 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084608 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085207
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084608
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 331ms (Views: 20.0ms | ActiveRecord: 141.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc5d9ad0b0aaefddb06d630e2b5d2d98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:37', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:37', 'format', 'journal', 969085208, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:37', 'isbn', 1, '9789810743734', 969085208, '9789810743734')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085208, 'fc5d9ad0b0aaefddb06d630e2b5d2d98')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084609
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:37', NULL, 969084609, 'BorrowDirect', 'queued', '2015-02-24 15:56:37')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4168[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085208)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208)[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084609) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084609)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`id` = 4168 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084609, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:37', 'Choose your delivery location', 969084609, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (22.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4168
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085208 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084609 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085208
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084609
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 291ms (Views: 21.1ms | ActiveRecord: 136.4ms)
Started GET "/borrow_direct/BorrowDirect/969084609?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 10:56:37 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084609"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084609 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4168
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:37', 969084609, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (21.7ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085208 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084609&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 57ms (ActiveRecord: 48.6ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:37' WHERE `dispatched_services`.`id` = 4168[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016148
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084609&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:56:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084609", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:56:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085208 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084609
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084609 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 [["request_id", 969084609]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085208 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085208)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084609 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084609 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085208[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084609[0m
[1m[35m (21.0ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 18.6ms | ActiveRecord: 53.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9387fa6b2a9b6ef29be7a8ee7f356a7f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:38', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'format', 'journal', 969085209, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'isbn', 1, '9789810743734', 969085209, '9789810743734')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085209, '9387fa6b2a9b6ef29be7a8ee7f356a7f')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084610[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:38', NULL, 969084610, 'BorrowDirect', 'queued', '2015-02-24 15:56:38')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:38' WHERE `dispatched_services`.`id` = 4169
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084610 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085209)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085209)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084610) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084610)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084610 AND `dispatched_services`.`id` = 4169 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084610, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:38', 'Choose your delivery location', 969084610, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:38' WHERE `dispatched_services`.`id` = 4169[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084610 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085209 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085209)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084610 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084610 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084610 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085209[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (45.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084610[0m
[1m[35m (23.6ms)[0m COMMIT
Completed 200 OK in 387ms (Views: 23.6ms | ActiveRecord: 186.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:56:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53bb7512425b3d56046f66a2704549f3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:38', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'format', 'journal', 969085210, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'isbn', 1, '9789810743734', 969085210, '9789810743734')[0m
[1m[35m (32.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (33.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085210, '53bb7512425b3d56046f66a2704549f3')
[1m[36m (38.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084611[0m
[1m[35m (35.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:38', NULL, 969084611, 'BorrowDirect', 'queued', '2015-02-24 15:56:38')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:38' WHERE `dispatched_services`.`id` = 4170
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085210)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084611) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084611)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`id` = 4170 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084611, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:38', 'Choose your delivery location', 969084611, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (20.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:56:38' WHERE `dispatched_services`.`id` = 4170[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085210 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084611 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085210[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084611[0m
[1m[35m (18.6ms)[0m COMMIT
Completed 200 OK in 376ms (Views: 21.6ms | ActiveRecord: 219.9ms)
Started GET "/borrow_direct/BorrowDirect/969084611" for 127.0.0.1 at 2015-02-24 10:56:38 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084611"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084611 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:38', 969084611, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (22.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085210 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084611&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 27.6ms)
Started GET "/resolve?umlaut.request_id=969084611&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A38-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 10:56:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084611", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T10:56:38-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085210 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084611
[1m[36m (22.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 [["request_id", 969084611]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085210 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085210)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084611 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084611 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084611 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085210
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084611
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 91ms (Views: 25.4ms | ActiveRecord: 55.9ms)
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8a78770ba4601b65bec2f497585fd40' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 15:56:38', 'biological foundations of language', '1967')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'format', 'book', 969085211, 'book')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'auinit', 1, 'eh', 969085211, 'EH')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'aulast', 1, 'lenneberg', 969085211, 'Lenneberg')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'title', 1, 'biological foundations of language', 969085211, 'Biological foundations of language')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'genre', 1, 'book', 969085211, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:38', 'date', 1, '1967', 969085211, '1967')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085211, 'info:sid/google', 'c8a78770ba4601b65bec2f497585fd40')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084612 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084612, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084612 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084612, 'test_bd', 'successful', '2015-02-24 15:56:39')[0m
[1m[35m (20.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4171
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084612
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e698f6d1941a62b3bd355fa5135c4b8' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 15:56:39', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085212, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'auinit', 1, 'rd', 969085212, 'RD')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'aulast', 1, 'kaplan', 969085212, 'Kaplan')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'atitle', 1, 'the coming anarchy', 969085212, 'The coming anarchy')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'title', 1, 'the atlantic monthly', 969085212, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'volume', 1, '273', 969085212, '273')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'issue', 1, '2', 969085212, '2')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'date', 1, '1994', 969085212, '1994')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'spage', 1, '44', 969085212, '44')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'issn', 1, '1072-7825', 969085212, '1072-7825')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085212, 'info:sid/google', '2e698f6d1941a62b3bd355fa5135c4b8')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084613 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084613, 'test_bd', 'successful', '2015-02-24 15:56:39')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4172[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084613[0m
[1m[35mServiceResponse Exists (1.5ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084613 LIMIT 1
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '170a0d7507ebaf0d6d0182f67332c03f' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:39', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085213, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085213, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'aulast', 1, 'grimes', 969085213, 'Grimes')
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085213, '170a0d7507ebaf0d6d0182f67332c03f')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084614, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084614 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7539d944f1100aa6e8943240c552d90d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:56:39', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085214, 'journal')
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'title', 1, 'title', 969085214, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'author', 1, 'au', 969085214, 'au')
[1m[36m (22.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085214, '7539d944f1100aa6e8943240c552d90d')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084615, '--- {}\n', 'test_holding', 'holding')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084615, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084615 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084615, 'test_bd', 'successful', '2015-02-24 15:56:39')[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4173
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084615
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084615 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b74505f77acf341a2abcd2de8374dea3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:39', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085215, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'isbn', 1, '9789810743734', 969085215, '9789810743734')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085215, 'b74505f77acf341a2abcd2de8374dea3')[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084616 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084616, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (20.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084616 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084616, 'test_bd', 'successful', '2015-02-24 15:56:39')[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4174
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084616
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.0ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acbcccc9b9f905bc98105b61c29a3c91' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:39', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085216, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'isbn', 1, '121212', 969085216, '121212')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085216, 'acbcccc9b9f905bc98105b61c29a3c91')[0m
[1m[35m (20.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084617"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084617 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084617 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969084617
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084617, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084617\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085216 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085216)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084617&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 25.5ms)
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3e8228d1fef70359de81e550af8c60e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:39', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085217, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'isbn', 1, '121212', 969085217, '121212')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085217, 'b3e8228d1fef70359de81e550af8c60e')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084618, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084618"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084618 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084618 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016160
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084618, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016160\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085217 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085217)
Redirected to http://test.host/resolve?umlaut.request_id=969084618&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 33ms (ActiveRecord: 26.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71fad4cb52910f6cf5ca10affa427d0c' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:39', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'format', 'journal', 969085218, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:39', 'isbn', 1, '121212', 969085218, '121212')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:39', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085218, '71fad4cb52910f6cf5ca10affa427d0c')
[1m[36m (22.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:39', 969084619, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (20.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084619"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084619 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084619 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084619 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:39', NULL, 969084619, 'BorrowDirect', 'in_progress', '2015-02-24 15:56:39')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:39' WHERE `dispatched_services`.`id` = 4175
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084619, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085218 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085218)
Redirected to http://test.host/resolve?umlaut.request_id=969084619&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 80ms (ActiveRecord: 69.2ms)
[1m[36mDispatchedService Load (3.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084619[0m
[1m[35mServiceResponse Load (5.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084619 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084619 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4175[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016163
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '507e6f0229b0a65eef443453725379ef' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085219, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '121212', 969085219, '121212')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085219, '507e6f0229b0a65eef443453725379ef')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084620, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084620"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084620 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084620 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084620 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:40', NULL, 969084620, 'BorrowDirect', 'in_progress', '2015-02-24 15:56:40')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4176[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084620, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085219 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085219)[0m
Redirected to http://example.org
Completed 302 Found in 83ms (ActiveRecord: 69.9ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '287e7faccdcea4f5c79befa9326602c4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085220, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '121212', 969085220, '121212')
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (29.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085220, '287e7faccdcea4f5c79befa9326602c4')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084621, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084621"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084621 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084621 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084621, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.4ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 28ms (ActiveRecord: 23.5ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ca4c8bf78f7430fc36eb5afaa867cf7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (4.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085221, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '121212', 969085221, '121212')[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085221, '0ca4c8bf78f7430fc36eb5afaa867cf7')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084622, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (20.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084622"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084622 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084622 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084622 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:40', NULL, 969084622, 'BorrowDirect', 'in_progress', '2015-02-24 15:56:40')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4177
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084622, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085221 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085221)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 85ms (Views: 0.3ms | ActiveRecord: 71.7ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da7503d752f46a5c373104185c4835ac' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084622 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (2.3ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '121212')[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4177
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085222, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '121212', 969085222, '121212')
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016169[0m
[1m[35m (24.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085222, 'da7503d752f46a5c373104185c4835ac')
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35m (20.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084623"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084623 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084623 ORDER BY id ASC
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 969084623, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (21.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085222 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085222)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084623&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T10%3A56%3A40-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 29.4ms)
[1m[35m (0.6ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a91d9d9648992c4c6b0cb6521b669579' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085223, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '9789810743734', 969085223, '9789810743734')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085223, 'a91d9d9648992c4c6b0cb6521b669579')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084624 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084624, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 'Choose your delivery location', 969084624, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084624 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:40', NULL, 969084624, 'test_bd', 'successful', '2015-02-24 15:56:40')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:40' WHERE `dispatched_services`.`id` = 4178[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084624[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6aa777de91a8982526fb84f7afefac73' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:40', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'format', 'journal', 969085224, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:40', 'isbn', 1, '0109836413', 969085224, '0109836413')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 15:56:40', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085224, '6aa777de91a8982526fb84f7afefac73')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084625 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084625, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:40', 'This item is not currently available from BorrowDirect', 969084625, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084625 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:41', NULL, 969084625, 'test_bd', 'successful', '2015-02-24 15:56:41')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:41' WHERE `dispatched_services`.`id` = 4179[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084625[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '64780e40856a28b4bf0c3182abbb0f09' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:41', '000000000')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:41', 'format', 'journal', 969085225, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:41', 'isbn', 1, '000000000', 969085225, '000000000')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 15:56:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085225, '64780e40856a28b4bf0c3182abbb0f09')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084626 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084626, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:56:41', 'This item is not currently available from BorrowDirect', 969084626, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084626 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:41', NULL, 969084626, 'test_bd', 'successful', '2015-02-24 15:56:41')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:56:41' WHERE `dispatched_services`.`id` = 4180[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084626[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a2d74061db0169f177ed86c9486d546' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:56:41', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:41', 'format', 'journal', 969085226, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:56:41', 'isbn', 1, '9789810743734', 969085226, '9789810743734')
[1m[36m (24.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:56:41', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085226, '5a2d74061db0169f177ed86c9486d546')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084627 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:56:41', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084627, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.9ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084627 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:56:41', NULL, 969084627, 'test_bd', 'failed_temporary', '2015-02-24 15:56:41')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 15:56:41' WHERE `dispatched_services`.`id` = 4181
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084627
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e56815f34d38ce15a274caa9d0d4eb1f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:57:03', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'format', 'journal', 969085227, 'journal')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'isbn', 1, '9789810743734', 969085227, '9789810743734')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:57:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085227, 'e56815f34d38ce15a274caa9d0d4eb1f')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084628 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:57:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084628, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (29.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084628 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:03', NULL, 969084628, 'test_bd', 'successful', '2015-02-24 15:57:03')[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:03' WHERE `dispatched_services`.`id` = 4182
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084628
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5e4a004463f3fd9e45b6ade75834b30d' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:57:03', 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'format', 'journal', 969085228, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'title', 1, 'title', 969085228, 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'author', 1, 'au', 969085228, 'au')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 15:57:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085228, '5e4a004463f3fd9e45b6ade75834b30d')[0m
[1m[35m (21.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 15:57:03', 969084629, '--- {}\n', 'test_holding', 'holding')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:57:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084629, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084629 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:03', NULL, 969084629, 'test_bd', 'successful', '2015-02-24 15:57:03')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:03' WHERE `dispatched_services`.`id` = 4183
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084629
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084629 ORDER BY id ASC[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:57:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6db03f05e5ff99d3c687a0100b4b6f7f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:57:03', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'format', 'journal', 969085229, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:03', 'isbn', 1, '9789810743734', 969085229, '9789810743734')
[1m[36m (24.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:57:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085229, '6db03f05e5ff99d3c687a0100b4b6f7f')[0m
[1m[35m (56.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084630
[1m[36m (52.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:04', NULL, 969084630, 'test_bd', 'queued', '2015-02-24 15:57:04')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:04' WHERE `dispatched_services`.`id` = 4184[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084630 LIMIT 1[0m
[1m[35mReferent Load (1.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085229)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085229)[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084630) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084630)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (28.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084630 AND `dispatched_services`.`id` = 4184 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:57:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084630, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (25.5ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:57:04' WHERE `dispatched_services`.`id` = 4184[0m
[1m[35m (26.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084630 LIMIT 1[0m
[1m[35mDispatchedService Load (6.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085229 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085229)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084630 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (38981.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38983.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084630 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (39044.4ms)
[1m[36mPermalink Load (2.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085229[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (14.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (1.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084630[0m
[1m[35m (26.9ms)[0m COMMIT
Completed 200 OK in 39614ms (Views: 39118.4ms | ActiveRecord: 229.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:57:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e78738e37a7324923843e44efb0f316c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:57:43', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'format', 'book', 969085230, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'genre', 1, 'book', 969085230, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'author', 1, 'smith', 969085230, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'title', 1, 'some book', 969085230, 'Some Book')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:57:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085230, 'e78738e37a7324923843e44efb0f316c')
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084631[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:43', NULL, 969084631, 'BorrowDirect', 'queued', '2015-02-24 15:57:43')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:43' WHERE `dispatched_services`.`id` = 4185
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084631 LIMIT 1
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085230)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085230)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084631) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084631)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084631 AND `dispatched_services`.`id` = 4185 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:57:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084631, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:57:43' WHERE `dispatched_services`.`id` = 4185
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084631 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085230 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085230)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (10.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.5ms)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084631 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084631 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.4ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085230[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084631[0m
[1m[35m (17.8ms)[0m COMMIT
Completed 200 OK in 334ms (Views: 44.9ms | ActiveRecord: 152.4ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:57:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '34dce49c60f38a42900787a4559a57f9' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:57:43', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'format', 'journal', 969085231, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'genre', 1, 'article', 969085231, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'title', 1, 'foo', 969085231, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:43', 'author', 1, 'bar', 969085231, 'bar')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:57:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085231, '34dce49c60f38a42900787a4559a57f9')
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084632[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:43', NULL, 969084632, 'BorrowDirect', 'queued', '2015-02-24 15:57:43')[0m
[1m[35m (22.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:43' WHERE `dispatched_services`.`id` = 4186
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084632 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085231)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085231)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084632) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084632)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084632 AND `dispatched_services`.`id` = 4186 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:57:44' WHERE `dispatched_services`.`id` = 4186[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084632 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms)
[1m[36mDispatchedService Load (2.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085231 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085231)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.5ms)
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084632 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084632 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085231
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (45.0ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084632
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 344ms (Views: 84.9ms | ActiveRecord: 150.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2bc196f6cafe94e6aaf0b693613c93b4' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:57:44', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:44', 'format', 'book', 969085232, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:44', 'genre', 1, 'book', 969085232, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:57:44', 'title', 1, 'foo', 969085232, 'foo')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:57:44', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085232, '2bc196f6cafe94e6aaf0b693613c93b4')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084633 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:57:44', NULL, 969084633, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:57:44')
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:57:44' WHERE `dispatched_services`.`id` = 4187[0m
[1m[35m (20.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084633" for 127.0.0.1 at 2015-02-24 10:57:44 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084633"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084633 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085232 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085232)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084633[0m
[1m[35m (23.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084633[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084633 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084633[0m [["request_id", 969084633]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085232 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085232)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.4ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084633 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:58:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4d324095bceb6ea8f6253db7e3d98b43' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:58:25', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:25', 'format', 'journal', 969085233, 'journal')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:25', 'isbn', 1, '9789810743734', 969085233, '9789810743734')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:58:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085233, '4d324095bceb6ea8f6253db7e3d98b43')[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084634
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:58:25', NULL, 969084634, 'test_bd', 'queued', '2015-02-24 15:58:25')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4188[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084634 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085233)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085233)[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084634) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084634)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (32.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084634 AND `dispatched_services`.`id` = 4188 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:58:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084634, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (23.7ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4188[0m
[1m[35m (25.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084634 LIMIT 1[0m
[1m[35mDispatchedService Load (7.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085233 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085233)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084634 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084634 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (99.6ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085233
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084634
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 705ms (Views: 140.5ms | ActiveRecord: 172.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:58:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '665f9fe850654206d21a0854cb59a295' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:58:26', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'format', 'book', 969085234, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'genre', 1, 'book', 969085234, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'author', 1, 'smith', 969085234, 'Smith')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'title', 1, 'some book', 969085234, 'Some Book')
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:58:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085234, '665f9fe850654206d21a0854cb59a295')[0m
[1m[35m (23.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084635
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:58:26', NULL, 969084635, 'BorrowDirect', 'queued', '2015-02-24 15:58:26')
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4189[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084635 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085234)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085234)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084635) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084635)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (23.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084635 AND `dispatched_services`.`id` = 4189 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:58:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084635, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4189[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084635 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085234 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085234)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084635 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084635 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085234[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084635[0m
[1m[35m (22.7ms)[0m COMMIT
Completed 200 OK in 300ms (Views: 20.5ms | ActiveRecord: 169.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:58:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23cdb606865f0d45669b9b3a0dfaf9d0' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:58:26', 'foo')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'format', 'journal', 969085235, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'genre', 1, 'article', 969085235, 'article')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'title', 1, 'foo', 969085235, 'foo')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:26', 'author', 1, 'bar', 969085235, 'bar')[0m
[1m[35m (29.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:58:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085235, '23cdb606865f0d45669b9b3a0dfaf9d0')
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084636[0m
[1m[35m (26.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:58:26', NULL, 969084636, 'BorrowDirect', 'queued', '2015-02-24 15:58:26')[0m
[1m[35m (27.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4190
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084636 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085235)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085235)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084636) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084636)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (22.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084636 AND `dispatched_services`.`id` = 4190 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:58:26' WHERE `dispatched_services`.`id` = 4190[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084636 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085235 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085235)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084636 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084636 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085235
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084636
[1m[36m (37.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 293ms (Views: 18.4ms | ActiveRecord: 189.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c31b0dc146afcd3906ec530e530a782' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:58:27', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:27', 'format', 'book', 969085236, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:27', 'genre', 1, 'book', 969085236, 'book')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:58:27', 'title', 1, 'foo', 969085236, 'foo')[0m
[1m[35m (26.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:58:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085236, '2c31b0dc146afcd3906ec530e530a782')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084637 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:58:27', NULL, 969084637, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:58:27')
[1m[36m (24.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:58:27' WHERE `dispatched_services`.`id` = 4191[0m
[1m[35m (22.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084637" for 127.0.0.1 at 2015-02-24 10:58:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084637"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084637 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085236 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085236)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084637[0m
[1m[35m (23.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084637[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084637 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084637[0m [["request_id", 969084637]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085236 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085236)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084637 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084637 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085236
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084637
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 85ms (Views: 19.7ms | ActiveRecord: 58.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 10:59:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e53a3fac1db5ca8a138464301a44f3b4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 15:59:47', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:47', 'format', 'journal', 969085237, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:47', 'isbn', 1, '9789810743734', 969085237, '9789810743734')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 15:59:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085237, 'e53a3fac1db5ca8a138464301a44f3b4')[0m
[1m[35m (22.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084638
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:59:47', NULL, 969084638, 'test_bd', 'queued', '2015-02-24 15:59:47')
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:59:47' WHERE `dispatched_services`.`id` = 4192[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084638 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085237)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085237)[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084638) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084638)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (23.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084638 AND `dispatched_services`.`id` = 4192 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:59:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084638, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 15:59:47' WHERE `dispatched_services`.`id` = 4192[0m
[1m[35m (25.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084638 LIMIT 1[0m
[1m[35mDispatchedService Load (7.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085237 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085237)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (2.1ms)
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084638 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084638 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (102.5ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085237
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084638
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 702ms (Views: 146.9ms | ActiveRecord: 175.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 10:59:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e167ccacf4f01ee643171838ef2328e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:59:48', 'some book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'format', 'book', 969085238, 'book')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'genre', 1, 'book', 969085238, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'author', 1, 'smith', 969085238, 'Smith')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'title', 1, 'some book', 969085238, 'Some Book')
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 15:59:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085238, '1e167ccacf4f01ee643171838ef2328e')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084639
[1m[36m (24.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:59:48', NULL, 969084639, 'BorrowDirect', 'queued', '2015-02-24 15:59:48')
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4193[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084639 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085238)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085238)[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084639) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084639)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084639 AND `dispatched_services`.`id` = 4193 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 15:59:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084639, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4193[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084639 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085238 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085238)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084639 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084639 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085238
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084639
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 291ms (Views: 21.1ms | ActiveRecord: 160.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 10:59:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c81652eddb707e67625313027ef1e20' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:59:48', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'format', 'journal', 969085239, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'genre', 1, 'article', 969085239, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'title', 1, 'foo', 969085239, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'author', 1, 'bar', 969085239, 'bar')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 15:59:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085239, '1c81652eddb707e67625313027ef1e20')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084640
[1m[36m (21.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:59:48', NULL, 969084640, 'BorrowDirect', 'queued', '2015-02-24 15:59:48')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4194[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084640 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085239)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085239)[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084640) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084640)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084640 AND `dispatched_services`.`id` = 4194 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4194
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084640 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085239 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085239)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084640 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084640 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085239[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084640[0m
[1m[35m (20.9ms)[0m COMMIT
Completed 200 OK in 243ms (Views: 17.1ms | ActiveRecord: 146.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed29350b7f7c7b8ad67f815903d1f356' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 15:59:48', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'format', 'book', 969085240, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'genre', 1, 'book', 969085240, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 15:59:48', 'title', 1, 'foo', 969085240, 'foo')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 15:59:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085240, 'ed29350b7f7c7b8ad67f815903d1f356')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084641 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 15:59:48', NULL, 969084641, 'BorrowDirect', 'failed_fatal', '2015-02-24 15:59:48')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 15:59:48' WHERE `dispatched_services`.`id` = 4195
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084641" for 127.0.0.1 at 2015-02-24 10:59:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084641"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084641 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085240 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085240)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084641
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084641
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084641 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084641 [["request_id", 969084641]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085240 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085240)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084641 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084641 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085240[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084641[0m
[1m[35m (21.8ms)[0m COMMIT
Completed 200 OK in 84ms (Views: 19.3ms | ActiveRecord: 57.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:00:20 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a41ac5c7533d5395a536e0042cde625b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:00:20', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:20', 'format', 'journal', 969085241, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:20', 'isbn', 1, '9789810743734', 969085241, '9789810743734')
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:00:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085241, 'a41ac5c7533d5395a536e0042cde625b')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084642
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:00:21', NULL, 969084642, 'test_bd', 'queued', '2015-02-24 16:00:21')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4196[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084642 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085241)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085241)[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084642) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084642)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084642 AND `dispatched_services`.`id` = 4196 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:00:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084642, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (24.9ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4196[0m
[1m[35m (33.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084642 LIMIT 1[0m
[1m[35mDispatchedService Load (7.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085241 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085241)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084642 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084642 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.0ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085241[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084642[0m
[1m[35m (20.4ms)[0m COMMIT
Completed 200 OK in 698ms (Views: 138.6ms | ActiveRecord: 170.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:00:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f9ee42e79dc72c216f0b811918f1802' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:00:21', 'some book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'format', 'book', 969085242, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'genre', 1, 'book', 969085242, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'author', 1, 'smith', 969085242, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'title', 1, 'some book', 969085242, 'Some Book')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:00:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085242, '0f9ee42e79dc72c216f0b811918f1802')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084643[0m
[1m[35m (21.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:00:21', NULL, 969084643, 'BorrowDirect', 'queued', '2015-02-24 16:00:21')[0m
[1m[35m (25.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4197
[1m[36m (32.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084643 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085242)[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085242)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084643) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084643)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (21.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084643 AND `dispatched_services`.`id` = 4197 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:00:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084643, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (22.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4197
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084643 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085242 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085242)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084643 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084643 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085242[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084643[0m
[1m[35m (20.7ms)[0m COMMIT
Completed 200 OK in 307ms (Views: 23.0ms | ActiveRecord: 172.9ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:00:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '722c375646cce9a16f130878f0b3771d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:00:21', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'format', 'journal', 969085243, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'genre', 1, 'article', 969085243, 'article')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'title', 1, 'foo', 969085243, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:21', 'author', 1, 'bar', 969085243, 'bar')[0m
[1m[35m (25.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:00:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085243, '722c375646cce9a16f130878f0b3771d')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084644[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:00:21', NULL, 969084644, 'BorrowDirect', 'queued', '2015-02-24 16:00:21')[0m
[1m[35m (39.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:00:21' WHERE `dispatched_services`.`id` = 4198
[1m[36m (43.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084644 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085243)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085243)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084644) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084644)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (29.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084644 AND `dispatched_services`.`id` = 4198 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:00:22' WHERE `dispatched_services`.`id` = 4198[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084644 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085243 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085243)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084644 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084644 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085243
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084644
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 304ms (Views: 18.4ms | ActiveRecord: 195.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cc68d13f137a9cc2abe6aabca003c3d8' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:00:22', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:22', 'format', 'book', 969085244, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:22', 'genre', 1, 'book', 969085244, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:00:22', 'title', 1, 'foo', 969085244, 'foo')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:00:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085244, 'cc68d13f137a9cc2abe6aabca003c3d8')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084645 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:00:22', NULL, 969084645, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:00:22')
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:00:22' WHERE `dispatched_services`.`id` = 4199[0m
[1m[35m (18.5ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084645" for 127.0.0.1 at 2015-02-24 11:00:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084645"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084645 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085244 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085244)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084645[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084645[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084645 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084645[0m [["request_id", 969084645]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085244 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085244)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084645 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084645 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085244
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084645
[1m[36m (25.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 86ms (Views: 19.1ms | ActiveRecord: 59.0ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:01:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '35d0d934a6a260297a6c92c91c25ea80' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:01:21', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:21', 'format', 'journal', 969085245, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:21', 'isbn', 1, '9789810743734', 969085245, '9789810743734')
[1m[36m (43.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:01:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085245, '35d0d934a6a260297a6c92c91c25ea80')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084646
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:21', NULL, 969084646, 'test_bd', 'queued', '2015-02-24 16:01:21')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:21' WHERE `dispatched_services`.`id` = 4200[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084646 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085245)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085245)[0m
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084646) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084646)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (24.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084646 AND `dispatched_services`.`id` = 4200 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084646, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (22.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:01:21' WHERE `dispatched_services`.`id` = 4200[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084646 LIMIT 1[0m
[1m[35mDispatchedService Load (7.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085245 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085245)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084646 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084646 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (94.5ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085245[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084646[0m
[1m[35m (17.4ms)[0m COMMIT
Completed 200 OK in 701ms (Views: 136.6ms | ActiveRecord: 190.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:01:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '129d8dd26329268c8508d5144339d16f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:22', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'format', 'book', 969085246, 'book')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'genre', 1, 'book', 969085246, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'author', 1, 'smith', 969085246, 'Smith')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'title', 1, 'some book', 969085246, 'Some Book')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:01:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085246, '129d8dd26329268c8508d5144339d16f')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084647[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:22', NULL, 969084647, 'BorrowDirect', 'queued', '2015-02-24 16:01:22')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4201
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084647 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085246)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085246)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084647) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084647)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (28.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084647 AND `dispatched_services`.`id` = 4201 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084647, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4201
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084647 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085246 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085246)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084647 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084647 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085246[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084647[0m
[1m[35m (18.9ms)[0m COMMIT
Completed 200 OK in 289ms (Views: 19.7ms | ActiveRecord: 154.4ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:01:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '38aadd3944097d31e464ce7edebe846b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:22', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'format', 'journal', 969085247, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'genre', 1, 'article', 969085247, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'title', 1, 'foo', 969085247, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'author', 1, 'bar', 969085247, 'bar')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:01:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085247, '38aadd3944097d31e464ce7edebe846b')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084648[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:22', NULL, 969084648, 'BorrowDirect', 'queued', '2015-02-24 16:01:22')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4202
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084648 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085247)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085247)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084648) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084648)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084648 AND `dispatched_services`.`id` = 4202 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4202[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084648 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085247 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085247)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084648 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084648 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085247
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084648
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 232ms (Views: 17.3ms | ActiveRecord: 139.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84b0293afebae13a96596580f04b4ad0' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:22', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'format', 'book', 969085248, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'genre', 1, 'book', 969085248, 'book')
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:22', 'title', 1, 'foo', 969085248, 'foo')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:01:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085248, '84b0293afebae13a96596580f04b4ad0')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084649 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:22', NULL, 969084649, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:01:22')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:22' WHERE `dispatched_services`.`id` = 4203[0m
[1m[35m (18.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084649" for 127.0.0.1 at 2015-02-24 11:01:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084649"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084649 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085248 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085248)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084649[0m
[1m[35m (21.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084649[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084649 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084649[0m [["request_id", 969084649]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085248 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085248)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084649 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084649 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085248
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084649
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 87ms (Views: 19.5ms | ActiveRecord: 58.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:01:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9fd9690f68614471ffefd9919435724' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.7ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:01:34', '9789810743734')
[1m[36mSQL (5.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'format', 'journal', 969085249, 'journal')[0m
[1m[35mSQL (5.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'isbn', 1, '9789810743734', 969085249, '9789810743734')
[1m[36m (24.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:01:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085249, 'd9fd9690f68614471ffefd9919435724')[0m
[1m[35m (43.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084650
[1m[36m (24.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:34', NULL, 969084650, 'test_bd', 'queued', '2015-02-24 16:01:34')
[1m[36m (76.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:34' WHERE `dispatched_services`.`id` = 4204[0m
[1m[35m (30.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084650 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085249)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085249)[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084650) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084650)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084650 AND `dispatched_services`.`id` = 4204 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084650, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.7ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:01:34' WHERE `dispatched_services`.`id` = 4204[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084650 LIMIT 1[0m
[1m[35mDispatchedService Load (7.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085249 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085249)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084650 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084650 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (94.5ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085249[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084650[0m
[1m[35m (17.8ms)[0m COMMIT
Completed 200 OK in 785ms (Views: 137.1ms | ActiveRecord: 284.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:01:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '608427c08d763f613ba2e856fbc5b6c9' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:34', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'format', 'book', 969085250, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'genre', 1, 'book', 969085250, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'author', 1, 'smith', 969085250, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:34', 'title', 1, 'some book', 969085250, 'Some Book')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:01:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085250, '608427c08d763f613ba2e856fbc5b6c9')
[1m[36m (23.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084651[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:34', NULL, 969084651, 'BorrowDirect', 'queued', '2015-02-24 16:01:34')[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:34' WHERE `dispatched_services`.`id` = 4205
[1m[36m (23.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084651 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085250)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085250)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084651) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084651)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084651 AND `dispatched_services`.`id` = 4205 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084651, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:35' WHERE `dispatched_services`.`id` = 4205
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084651 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085250 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085250)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084651 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084651 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085250[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084651[0m
[1m[35m (19.2ms)[0m COMMIT
Completed 200 OK in 287ms (Views: 20.4ms | ActiveRecord: 160.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:01:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a00b4d41115cea72e3b3f5d00e59965a' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:35', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'format', 'journal', 969085251, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'genre', 1, 'article', 969085251, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'title', 1, 'foo', 969085251, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'author', 1, 'bar', 969085251, 'bar')[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:01:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085251, 'a00b4d41115cea72e3b3f5d00e59965a')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084652[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:35', NULL, 969084652, 'BorrowDirect', 'queued', '2015-02-24 16:01:35')[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:35' WHERE `dispatched_services`.`id` = 4206
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084652 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085251)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085251)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084652) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084652)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084652 AND `dispatched_services`.`id` = 4206 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:35' WHERE `dispatched_services`.`id` = 4206[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084652 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085251 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085251)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084652 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084652 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085251
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084652
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 239ms (Views: 17.3ms | ActiveRecord: 142.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '24f7d0a22c6cd1f6fc2119f720ed5027' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:35', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'format', 'book', 969085252, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'genre', 1, 'book', 969085252, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:35', 'title', 1, 'foo', 969085252, 'foo')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:01:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085252, '24f7d0a22c6cd1f6fc2119f720ed5027')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084653 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:35', NULL, 969084653, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:01:35')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:35' WHERE `dispatched_services`.`id` = 4207[0m
[1m[35m (18.9ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084653" for 127.0.0.1 at 2015-02-24 11:01:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084653"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084653 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085252 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085252)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084653[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084653[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084653 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084653[0m [["request_id", 969084653]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085252 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085252)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084653 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084653 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085252
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084653
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 81ms (Views: 18.4ms | ActiveRecord: 54.6ms)
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:01:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ace9e640eebd2de9689b0856691f846c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:01:51', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'format', 'journal', 969085253, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'isbn', 1, '9789810743734', 969085253, '9789810743734')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:01:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085253, 'ace9e640eebd2de9689b0856691f846c')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084654
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:51', NULL, 969084654, 'test_bd', 'queued', '2015-02-24 16:01:51')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:51' WHERE `dispatched_services`.`id` = 4208[0m
[1m[35m (23.9ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084654 LIMIT 1[0m
[1m[35mReferent Load (2.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085253)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085253)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084654) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084654)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084654 AND `dispatched_services`.`id` = 4208 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084654, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (19.9ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:01:51' WHERE `dispatched_services`.`id` = 4208[0m
[1m[35m (26.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084654 LIMIT 1[0m
[1m[35mDispatchedService Load (7.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085253 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085253)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084654 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084654 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (97.0ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085253
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084654
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 688ms (Views: 139.1ms | ActiveRecord: 174.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:01:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7c240d5ae604bd344cc48b35f98c036' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:51', 'some book')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'format', 'book', 969085254, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'genre', 1, 'book', 969085254, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'author', 1, 'smith', 969085254, 'Smith')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:51', 'title', 1, 'some book', 969085254, 'Some Book')
[1m[36m (26.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:01:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085254, 'f7c240d5ae604bd344cc48b35f98c036')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084655
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:51', NULL, 969084655, 'BorrowDirect', 'queued', '2015-02-24 16:01:51')
[1m[36m (24.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:51' WHERE `dispatched_services`.`id` = 4209[0m
[1m[35m (23.6ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084655 LIMIT 1[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085254)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085254)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084655) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084655)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (22.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084655 AND `dispatched_services`.`id` = 4209 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:01:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084655, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:52' WHERE `dispatched_services`.`id` = 4209[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084655 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085254 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085254)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084655 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084655 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085254
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084655
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 303ms (Views: 19.4ms | ActiveRecord: 172.1ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:01:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c1828ad37ef765b2488d8b727b069382' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:52', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'format', 'journal', 969085255, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'genre', 1, 'article', 969085255, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'title', 1, 'foo', 969085255, 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'author', 1, 'bar', 969085255, 'bar')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:01:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085255, 'c1828ad37ef765b2488d8b727b069382')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084656
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:52', NULL, 969084656, 'BorrowDirect', 'queued', '2015-02-24 16:01:52')
[1m[36m (39.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:52' WHERE `dispatched_services`.`id` = 4210[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084656 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085255)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085255)[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084656) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084656)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (25.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084656 AND `dispatched_services`.`id` = 4210 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:01:52' WHERE `dispatched_services`.`id` = 4210
[1m[36m (24.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084656 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085255 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085255)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084656 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084656 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085255
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084656
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 275ms (Views: 17.7ms | ActiveRecord: 164.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '76180363b1783326b090afe5dea92d5e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:01:52', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'format', 'book', 969085256, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'genre', 1, 'book', 969085256, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:01:52', 'title', 1, 'foo', 969085256, 'foo')[0m
[1m[35m (25.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:01:52', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085256, '76180363b1783326b090afe5dea92d5e')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084657 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:01:52', NULL, 969084657, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:01:52')
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:01:52' WHERE `dispatched_services`.`id` = 4211[0m
[1m[35m (19.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084657" for 127.0.0.1 at 2015-02-24 11:01:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084657"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084657 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085256 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085256)[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084657[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084657[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084657 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084657[0m [["request_id", 969084657]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085256 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085256)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084657 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084657 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085256
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084657
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 83ms (Views: 19.1ms | ActiveRecord: 56.4ms)
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:02:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c29fe19564d4de025af6536fd92ac05d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:02:21', '9789810743734')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:21', 'format', 'journal', 969085257, 'journal')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:21', 'isbn', 1, '9789810743734', 969085257, '9789810743734')
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:02:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085257, 'c29fe19564d4de025af6536fd92ac05d')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084658
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:02:21', NULL, 969084658, 'test_bd', 'queued', '2015-02-24 16:02:21')
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:02:21' WHERE `dispatched_services`.`id` = 4212[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084658 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085257)
[1m[36mReferentValue Load (1.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085257)[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084658) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084658)[0m
[1m[35mDispatchedService Load (6.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (30.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084658 AND `dispatched_services`.`id` = 4212 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:02:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084658, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (20.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (3.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:02:21' WHERE `dispatched_services`.`id` = 4212[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084658 LIMIT 1[0m
[1m[35mDispatchedService Load (7.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085257 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085257)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084658 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084658 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (100.2ms)
[1m[36mPermalink Load (2.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085257[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (11.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084658[0m
[1m[35m (22.9ms)[0m COMMIT
Completed 200 OK in 719ms (Views: 140.5ms | ActiveRecord: 186.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:02:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (2.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ae11cbc66928596fcfcc4d87acdb225' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:02:22', 'some book')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'format', 'book', 969085258, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'genre', 1, 'book', 969085258, 'book')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'author', 1, 'smith', 969085258, 'Smith')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'title', 1, 'some book', 969085258, 'Some Book')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:02:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085258, '2ae11cbc66928596fcfcc4d87acdb225')
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084659[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (6.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:02:22', NULL, 969084659, 'BorrowDirect', 'queued', '2015-02-24 16:02:22')[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4213
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (2.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084659 LIMIT 1
[1m[36mReferent Load (1.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085258)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085258)
[1m[36mServiceResponse Load (6.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084659) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (2.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084659)
[1m[36mDispatchedService Load (2.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (22.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084659 AND `dispatched_services`.`id` = 4213 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:02:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084659, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (7.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4213
[1m[36m (23.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084659 LIMIT 1
[1m[36mDispatchedService Load (2.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.3ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659
[1m[36mReferent Load (2.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085258 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085258)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084659 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084659 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085258[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084659[0m
[1m[35m (21.4ms)[0m COMMIT
Completed 200 OK in 333ms (Views: 19.8ms | ActiveRecord: 177.1ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:02:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (2.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '59b2606a23cf227403f5c6001884c774' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:02:22', 'foo')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'format', 'journal', 969085259, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'genre', 1, 'article', 969085259, 'article')[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'title', 1, 'foo', 969085259, 'foo')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'author', 1, 'bar', 969085259, 'bar')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:02:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085259, '59b2606a23cf227403f5c6001884c774')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084660[0m
[1m[35m (21.3ms)[0m COMMIT
[1m[36mDispatchedService Load (2.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:02:22', NULL, 969084660, 'BorrowDirect', 'queued', '2015-02-24 16:02:22')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4214
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084660 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085259)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085259)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084660) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (3.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084660)
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084660 AND `dispatched_services`.`id` = 4214 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4214[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084660 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660
[1m[36mDispatchedService Load (2.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms)
[1m[35mReferent Load (2.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085259 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085259)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084660 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084660 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (2.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085259
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084660
[1m[36m (22.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 265ms (Views: 17.1ms | ActiveRecord: 160.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '707ccd640a9224e6c0605029ace2cb39' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:02:22', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'format', 'book', 969085260, 'book')[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'genre', 1, 'book', 969085260, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:02:22', 'title', 1, 'foo', 969085260, 'foo')[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:02:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085260, '707ccd640a9224e6c0605029ace2cb39')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084661 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:02:22', NULL, 969084661, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:02:22')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:02:22' WHERE `dispatched_services`.`id` = 4215[0m
[1m[35m (17.8ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084661" for 127.0.0.1 at 2015-02-24 11:02:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084661"}
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084661 LIMIT 1[0m
[1m[35mReferent Load (1.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085260 LIMIT 1
[1m[36mReferentValue Load (3.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085260)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084661[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mDispatchedService Load (2.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084661[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084661 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084661[0m [["request_id", 969084661]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085260 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085260)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084661 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084661 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085260
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084661
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 90ms (Views: 19.2ms | ActiveRecord: 62.6ms)
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c918d34609397fc20b0dc1418c47940' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:06', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'format', 'journal', 969085261, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'isbn', 1, '9789810743734', 969085261, '9789810743734')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085261, '9c918d34609397fc20b0dc1418c47940')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084662
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:06', NULL, 969084662, 'test_bd', 'queued', '2015-02-24 16:10:06')
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:06' WHERE `dispatched_services`.`id` = 4216[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084662 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085261)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085261)[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084662) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084662)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (28.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084662 AND `dispatched_services`.`id` = 4216 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084662, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (20.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (2.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:10:06' WHERE `dispatched_services`.`id` = 4216[0m
[1m[35m (22.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084662 LIMIT 1[0m
[1m[35mDispatchedService Load (7.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085261 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085261)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084662 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084662 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (96.5ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085261[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084662[0m
[1m[35m (20.4ms)[0m COMMIT
Completed 200 OK in 688ms (Views: 139.4ms | ActiveRecord: 166.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:10:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f93bce82e05eb023f97a6c308ead7452' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:10:06', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'format', 'book', 969085262, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'genre', 1, 'book', 969085262, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'author', 1, 'smith', 969085262, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:06', 'title', 1, 'some book', 969085262, 'Some Book')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:10:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085262, 'f93bce82e05eb023f97a6c308ead7452')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084663[0m
[1m[35m (21.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:07', NULL, 969084663, 'BorrowDirect', 'queued', '2015-02-24 16:10:07')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4217
[1m[36m (21.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084663 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085262)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085262)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084663) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084663)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084663 AND `dispatched_services`.`id` = 4217 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084663, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4217
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084663 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085262 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085262)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084663 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084663 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085262[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084663[0m
[1m[35m (21.3ms)[0m COMMIT
Completed 200 OK in 281ms (Views: 19.8ms | ActiveRecord: 157.2ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:10:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '081a611f9c3c3d140862a680b0b550d2' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:10:07', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'format', 'journal', 969085263, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'genre', 1, 'article', 969085263, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'title', 1, 'foo', 969085263, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'author', 1, 'bar', 969085263, 'bar')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:10:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085263, '081a611f9c3c3d140862a680b0b550d2')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084664[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:07', NULL, 969084664, 'BorrowDirect', 'queued', '2015-02-24 16:10:07')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4218
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084664 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085263)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085263)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084664) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084664)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084664 AND `dispatched_services`.`id` = 4218 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4218[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084664 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085263 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085263)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084664 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084664 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085263
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084664
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 238ms (Views: 18.2ms | ActiveRecord: 141.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '67b27f9a76a51b9f0615518554e8c458' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:10:07', 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'format', 'book', 969085264, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'genre', 1, 'book', 969085264, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'title', 1, 'foo', 969085264, 'foo')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:10:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085264, '67b27f9a76a51b9f0615518554e8c458')
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084665 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:07', NULL, 969084665, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:10:07')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4219[0m
[1m[35m (18.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084665" for 127.0.0.1 at 2015-02-24 11:10:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084665"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084665 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085264 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085264)[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084665[0m
[1m[35m (21.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084665[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084665 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084665[0m [["request_id", 969084665]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085264 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085264)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084665 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084665 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085264
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084665
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 83ms (Views: 18.6ms | ActiveRecord: 56.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a9c94d152a9965806bc52e1dbb12c98' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:07', '9789810743734')
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'format', 'journal', 969085265, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:07', 'isbn', 1, '9789810743734', 969085265, '9789810743734')
[1m[36m (30.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085265, '6a9c94d152a9965806bc52e1dbb12c98')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084666
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:07', NULL, 969084666, 'BorrowDirect', 'queued', '2015-02-24 16:10:07')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4220[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085265)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265)[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084666) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084666)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`id` = 4220 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084666, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:07', 'Choose your delivery location', 969084666, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:07' WHERE `dispatched_services`.`id` = 4220
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085265 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084666 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085265
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084666
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 312ms (Views: 24.7ms | ActiveRecord: 152.9ms)
Started GET "/borrow_direct/BorrowDirect/969084666?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:10:08 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084666"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084666 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4220
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:08', 969084666, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (62.2ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085265 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084666&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 100ms (ActiveRecord: 89.7ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4220[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016201
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084666&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:10:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084666", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:10:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085265 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084666
[1m[36m (22.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084666 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 [["request_id", 969084666]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085265 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085265)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084666 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084666 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085265[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084666[0m
[1m[35m (16.5ms)[0m COMMIT
Completed 200 OK in 84ms (Views: 21.3ms | ActiveRecord: 53.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:10:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63e2bca65318a0fe57a6a4c828e6f6f0' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:08', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:08', 'format', 'journal', 969085266, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:08', 'isbn', 1, '0109836413', 969085266, '0109836413')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:10:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085266, '63e2bca65318a0fe57a6a4c828e6f6f0')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084667[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:08', NULL, 969084667, 'BorrowDirect', 'queued', '2015-02-24 16:10:08')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4221
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084667 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085266)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085266)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084667) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084667)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084667 AND `dispatched_services`.`id` = 4221 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084667, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (22.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:08', 'This item is not currently available from BorrowDirect', 969084667, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4221[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084667 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085266 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085266)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084667 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084667 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085266
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084667
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 334ms (Views: 20.3ms | ActiveRecord: 139.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '200bb386c6d93b54754aae4b6e7603ea' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:08', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:08', 'format', 'journal', 969085267, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:08', 'isbn', 1, '9789810743734', 969085267, '9789810743734')
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085267, '200bb386c6d93b54754aae4b6e7603ea')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084668
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:08', NULL, 969084668, 'BorrowDirect', 'queued', '2015-02-24 16:10:08')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4222[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085267)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267)[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084668) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084668)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`id` = 4222 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084668, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:08', 'Choose your delivery location', 969084668, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4222
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085267 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084668 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085267
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084668
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 305ms (Views: 22.9ms | ActiveRecord: 148.2ms)
Started GET "/borrow_direct/BorrowDirect/969084668?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:10:08 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084668"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084668 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:10:08' WHERE `dispatched_services`.`id` = 4222
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:08', 969084668, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085267 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084668&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 64ms (ActiveRecord: 48.5ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4222[0m
[1m[35m (22.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016206
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084668&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:10:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084668", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:10:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085267 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084668
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084668 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 [["request_id", 969084668]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085267 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085267)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084668 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084668 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085267[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084668[0m
[1m[35m (25.6ms)[0m COMMIT
Completed 200 OK in 91ms (Views: 17.9ms | ActiveRecord: 64.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5d4b69f0ad39ed92352bda1eb0f74655' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:09', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:09', 'format', 'journal', 969085268, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:09', 'isbn', 1, '9789810743734', 969085268, '9789810743734')[0m
[1m[35m (22.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085268, '5d4b69f0ad39ed92352bda1eb0f74655')
[1m[36m (23.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084669[0m
[1m[35m (22.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:09', NULL, 969084669, 'BorrowDirect', 'queued', '2015-02-24 16:10:09')[0m
[1m[35m (25.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4223
[1m[36m (34.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084669 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085268)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085268)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084669) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084669)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (21.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084669 AND `dispatched_services`.`id` = 4223 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084669, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (23.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:09', 'Choose your delivery location', 969084669, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (27.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4223[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084669 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085268 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085268)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084669 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084669 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084669 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085268[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084669[0m
[1m[35m (21.3ms)[0m COMMIT
Completed 200 OK in 391ms (Views: 23.0ms | ActiveRecord: 178.5ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b61eeab57b9b72c0c84579ba57ae9836' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:09', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:09', 'format', 'journal', 969085269, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:09', 'isbn', 1, '9789810743734', 969085269, '9789810743734')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085269, 'b61eeab57b9b72c0c84579ba57ae9836')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084670[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (3.7ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:09', NULL, 969084670, 'BorrowDirect', 'queued', '2015-02-24 16:10:09')[0m
[1m[35m (24.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4224
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085269)[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084670) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084670)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (22.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`id` = 4224 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084670, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:09', 'Choose your delivery location', 969084670, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (24.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:10:09' WHERE `dispatched_services`.`id` = 4224[0m
[1m[35m (25.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085269 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084670 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085269[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084670[0m
[1m[35m (20.8ms)[0m COMMIT
Completed 200 OK in 322ms (Views: 21.3ms | ActiveRecord: 153.1ms)
Started GET "/borrow_direct/BorrowDirect/969084670" for 127.0.0.1 at 2015-02-24 11:10:09 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084670"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084670 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:10:09', 969084670, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (27.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085269 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084670&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 39ms (ActiveRecord: 32.5ms)
Started GET "/resolve?umlaut.request_id=969084670&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A10%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:10:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084670", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:10:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085269 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084670
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 [["request_id", 969084670]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085269 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085269)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084670 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084670 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084670 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085269
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084670
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 82ms (Views: 21.6ms | ActiveRecord: 50.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:10:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfb1c1058781a611fa06be01457306cc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:10:31', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:31', 'format', 'journal', 969085270, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:10:31', 'isbn', 1, '9789810743734', 969085270, '9789810743734')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:10:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085270, 'bfb1c1058781a611fa06be01457306cc')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084671
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:10:31', NULL, 969084671, 'test_bd', 'queued', '2015-02-24 16:10:31')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:10:31' WHERE `dispatched_services`.`id` = 4225[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084671 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085270)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085270)[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084671) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084671)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084671 AND `dispatched_services`.`id` = 4225 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:10:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084671, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (20.5ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:10:32' WHERE `dispatched_services`.`id` = 4225[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084671 LIMIT 1[0m
[1m[35mDispatchedService Load (7.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084671[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085270 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085270)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084671 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:14 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa3f3f2f758fb250ad7f595530a1f43d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:15', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'format', 'journal', 969085271, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'isbn', 1, '9789810743734', 969085271, '9789810743734')
[1m[36m (27.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085271, 'fa3f3f2f758fb250ad7f595530a1f43d')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084672
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:15', NULL, 969084672, 'test_bd', 'queued', '2015-02-24 16:11:15')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:15' WHERE `dispatched_services`.`id` = 4226[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084672 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085271)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085271)[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084672) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084672)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084672 AND `dispatched_services`.`id` = 4226 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084672, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:11:15' WHERE `dispatched_services`.`id` = 4226[0m
[1m[35m (20.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084672 LIMIT 1[0m
[1m[35mDispatchedService Load (7.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085271 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085271)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084672 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (32.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084672 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.9ms)
[1m[36mPermalink Load (1.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085271[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (1.0ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084672[0m
[1m[35m (17.2ms)[0m COMMIT
Completed 200 OK in 685ms (Views: 142.9ms | ActiveRecord: 171.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:11:15 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95889422058408e98c6236f55844ca14' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:11:15', 'some book')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'format', 'book', 969085272, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'genre', 1, 'book', 969085272, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'author', 1, 'smith', 969085272, 'Smith')
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:15', 'title', 1, 'some book', 969085272, 'Some Book')[0m
[1m[35m (21.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:11:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085272, '95889422058408e98c6236f55844ca14')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084673[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:15', NULL, 969084673, 'BorrowDirect', 'queued', '2015-02-24 16:11:15')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:15' WHERE `dispatched_services`.`id` = 4227
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084673 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085272)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085272)
[1m[36mServiceResponse Load (1.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084673) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084673)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084673 AND `dispatched_services`.`id` = 4227 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084673, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4227
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084673 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085272 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085272)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084673 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084673 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085272[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084673[0m
[1m[35m (17.8ms)[0m COMMIT
Completed 200 OK in 278ms (Views: 20.7ms | ActiveRecord: 151.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:11:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c187571dc90c54e9334b3e2a5b1fcd1b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:11:16', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'format', 'journal', 969085273, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'genre', 1, 'article', 969085273, 'article')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'title', 1, 'foo', 969085273, 'foo')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'author', 1, 'bar', 969085273, 'bar')[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:11:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085273, 'c187571dc90c54e9334b3e2a5b1fcd1b')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084674[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:16', NULL, 969084674, 'BorrowDirect', 'queued', '2015-02-24 16:11:16')[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4228
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084674 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085273)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085273)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084674) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084674)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (21.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084674 AND `dispatched_services`.`id` = 4228 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4228[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084674 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085273 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085273)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084674 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084674 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085273
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084674
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 241ms (Views: 16.9ms | ActiveRecord: 142.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6f5b630047424df03885196dbe827c6' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:11:16', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'format', 'book', 969085274, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'genre', 1, 'book', 969085274, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'title', 1, 'foo', 969085274, 'foo')[0m
[1m[35m (21.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:11:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085274, 'b6f5b630047424df03885196dbe827c6')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084675 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:16', NULL, 969084675, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:11:16')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4229[0m
[1m[35m (22.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084675" for 127.0.0.1 at 2015-02-24 11:11:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084675"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084675 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085274 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085274)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084675[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084675[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084675 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084675[0m [["request_id", 969084675]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085274 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085274)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084675 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084675 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085274
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084675
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 82ms (Views: 19.3ms | ActiveRecord: 53.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '194a6e4b62d6d2efaa3a53570a9d322d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:16', '9789810743734')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'format', 'journal', 969085275, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:16', 'isbn', 1, '9789810743734', 969085275, '9789810743734')
[1m[36m (25.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085275, '194a6e4b62d6d2efaa3a53570a9d322d')[0m
[1m[35m (77.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084676
[1m[36m (55.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:16', NULL, 969084676, 'BorrowDirect', 'queued', '2015-02-24 16:11:16')
[1m[36m (34.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4230[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085275)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275)[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084676) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084676)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (24.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`id` = 4230 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084676, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:16', 'Choose your delivery location', 969084676, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (26.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:16' WHERE `dispatched_services`.`id` = 4230
[1m[36m (21.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085275 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084676 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085275
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084676
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 432ms (Views: 25.7ms | ActiveRecord: 259.6ms)
Started GET "/borrow_direct/BorrowDirect/969084676?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:11:17 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084676"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084676 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4230
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:17', 969084676, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (23.8ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085275 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084676&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 64ms (ActiveRecord: 53.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4230[0m
[1m[35m (21.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016217
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084676&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:11:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084676", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:11:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085275 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084676
[1m[36m (21.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084676 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 [["request_id", 969084676]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085275 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085275)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084676 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084676 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085275[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084676[0m
[1m[35m (52.5ms)[0m COMMIT
Completed 200 OK in 126ms (Views: 23.7ms | ActiveRecord: 93.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:11:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f84a1376fdde4f3983200740f4ffaf3' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:17', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:17', 'format', 'journal', 969085276, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:17', 'isbn', 1, '0109836413', 969085276, '0109836413')[0m
[1m[35m (33.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:11:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085276, '9f84a1376fdde4f3983200740f4ffaf3')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084677[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:17', NULL, 969084677, 'BorrowDirect', 'queued', '2015-02-24 16:11:17')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4231
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084677 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085276)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085276)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084677) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084677)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084677 AND `dispatched_services`.`id` = 4231 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084677, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:17', 'This item is not currently available from BorrowDirect', 969084677, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4231[0m
[1m[35m (33.8ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084677 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085276 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085276)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084677 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084677 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085276
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084677
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 364ms (Views: 21.1ms | ActiveRecord: 159.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '033cbf094f71b75005f9de5081749399' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:17', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:17', 'format', 'journal', 969085277, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:17', 'isbn', 1, '9789810743734', 969085277, '9789810743734')
[1m[36m (21.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085277, '033cbf094f71b75005f9de5081749399')[0m
[1m[35m (26.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084678
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:17', NULL, 969084678, 'BorrowDirect', 'queued', '2015-02-24 16:11:17')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4232[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085277)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277)[0m
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084678) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084678)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (22.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`id` = 4232 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084678, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (25.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:17', 'Choose your delivery location', 969084678, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:17' WHERE `dispatched_services`.`id` = 4232
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085277 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084678 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085277
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084678
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 315ms (Views: 22.0ms | ActiveRecord: 152.8ms)
Started GET "/borrow_direct/BorrowDirect/969084678?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:11:18 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084678"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084678 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4232
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:18', 969084678, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085277 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084678&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 55ms (ActiveRecord: 46.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4232[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016222
[1m[36m (23.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084678&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:11:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084678", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:11:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085277 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084678
[1m[36m (30.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084678 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 [["request_id", 969084678]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085277 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085277)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084678 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084678 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085277[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084678[0m
[1m[35m (21.6ms)[0m COMMIT
Completed 200 OK in 95ms (Views: 19.2ms | ActiveRecord: 66.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d3244a56ff9c67bf3d246136e142eff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:18', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:18', 'format', 'journal', 969085278, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:18', 'isbn', 1, '9789810743734', 969085278, '9789810743734')[0m
[1m[35m (28.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085278, '9d3244a56ff9c67bf3d246136e142eff')
[1m[36m (24.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084679[0m
[1m[35m (55.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:18', NULL, 969084679, 'BorrowDirect', 'queued', '2015-02-24 16:11:18')[0m
[1m[35m (35.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4233
[1m[36m (44.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084679 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085278)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085278)
[1m[36mServiceResponse Load (2.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084679) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084679)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084679 AND `dispatched_services`.`id` = 4233 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084679, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:18', 'Choose your delivery location', 969084679, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4233[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084679 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085278 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085278)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084679 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084679 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084679 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085278[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084679[0m
[1m[35m (20.3ms)[0m COMMIT
Completed 200 OK in 436ms (Views: 22.2ms | ActiveRecord: 236.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '892f535bae9f4e8e48ca24a222595c7f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:18', '9789810743734')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:18', 'format', 'journal', 969085279, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:18', 'isbn', 1, '9789810743734', 969085279, '9789810743734')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085279, '892f535bae9f4e8e48ca24a222595c7f')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084680[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:18', NULL, 969084680, 'BorrowDirect', 'queued', '2015-02-24 16:11:18')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4234
[1m[36m (23.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085279)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084680) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084680)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`id` = 4234 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084680, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (25.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:18', 'Choose your delivery location', 969084680, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:11:18' WHERE `dispatched_services`.`id` = 4234[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085279 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084680 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085279[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084680[0m
[1m[35m (19.3ms)[0m COMMIT
Completed 200 OK in 300ms (Views: 21.2ms | ActiveRecord: 142.2ms)
Started GET "/borrow_direct/BorrowDirect/969084680" for 127.0.0.1 at 2015-02-24 11:11:18 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084680"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084680 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:11:18', 969084680, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085279 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084680&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.3ms)
Started GET "/resolve?umlaut.request_id=969084680&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A11%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:11:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084680", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:11:19-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085279 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084680
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 [["request_id", 969084680]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085279 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085279)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084680 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084680 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084680 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085279
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084680
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 83ms (Views: 22.7ms | ActiveRecord: 51.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:11:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53f68eaa4ca1ecda99c9beb3dce4f85f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:11:31', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:31', 'format', 'journal', 969085280, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:11:31', 'isbn', 1, '9789810743734', 969085280, '9789810743734')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:11:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085280, '53f68eaa4ca1ecda99c9beb3dce4f85f')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084681
[1m[36m (26.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:11:32', NULL, 969084681, 'test_bd', 'queued', '2015-02-24 16:11:32')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:11:32' WHERE `dispatched_services`.`id` = 4235[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084681 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085280)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085280)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084681) ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084681)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084681 AND `dispatched_services`.`id` = 4235 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:11:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084681, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:11:32' WHERE `dispatched_services`.`id` = 4235[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084681 LIMIT 1[0m
[1m[35mDispatchedService Load (6.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084681[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085280 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085280)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (2.0ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084681 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms)
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:12:59 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (4.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '709b55c4b4f5f9c66083f2cfa7151e38' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:00', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'format', 'journal', 969085281, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'isbn', 1, '9789810743734', 969085281, '9789810743734')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085281, '709b55c4b4f5f9c66083f2cfa7151e38')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084682
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:00', NULL, 969084682, 'test_bd', 'queued', '2015-02-24 16:13:00')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:00' WHERE `dispatched_services`.`id` = 4236[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084682 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085281)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085281)[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084682) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084682)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (25.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084682 AND `dispatched_services`.`id` = 4236 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084682, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (19.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:13:00' WHERE `dispatched_services`.`id` = 4236[0m
[1m[35m (22.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084682 LIMIT 1[0m
[1m[35mDispatchedService Load (6.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.3ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085281 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085281)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084682 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084682 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.9ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085281
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084682
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 693ms (Views: 140.3ms | ActiveRecord: 174.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:13:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '609e86fa5ecd92dd0e44af66f2c727da' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:13:00', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'format', 'book', 969085282, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'genre', 1, 'book', 969085282, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'author', 1, 'smith', 969085282, 'Smith')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:00', 'title', 1, 'some book', 969085282, 'Some Book')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:13:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085282, '609e86fa5ecd92dd0e44af66f2c727da')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084683
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:00', NULL, 969084683, 'BorrowDirect', 'queued', '2015-02-24 16:13:00')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:00' WHERE `dispatched_services`.`id` = 4237[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084683 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085282)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085282)[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084683) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084683)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084683 AND `dispatched_services`.`id` = 4237 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084683, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:00' WHERE `dispatched_services`.`id` = 4237[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084683 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085282 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085282)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084683 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084683 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085282
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084683
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 273ms (Views: 19.6ms | ActiveRecord: 147.0ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:13:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6c5e5f0e37d530d9c6a954bdf70a0fc' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:13:01', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'format', 'journal', 969085283, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'genre', 1, 'article', 969085283, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'title', 1, 'foo', 969085283, 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'author', 1, 'bar', 969085283, 'bar')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:13:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085283, 'b6c5e5f0e37d530d9c6a954bdf70a0fc')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084684
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:01', NULL, 969084684, 'BorrowDirect', 'queued', '2015-02-24 16:13:01')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:01' WHERE `dispatched_services`.`id` = 4238[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084684 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085283)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085283)[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084684) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084684)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084684 AND `dispatched_services`.`id` = 4238 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:01' WHERE `dispatched_services`.`id` = 4238
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084684 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085283 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085283)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084684 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084684 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085283[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084684[0m
[1m[35m (19.9ms)[0m COMMIT
Completed 200 OK in 238ms (Views: 16.4ms | ActiveRecord: 142.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9191a20a67e2dbb1025e000f3a6acf8b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:13:01', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'format', 'book', 969085284, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'genre', 1, 'book', 969085284, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:01', 'title', 1, 'foo', 969085284, 'foo')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:13:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085284, '9191a20a67e2dbb1025e000f3a6acf8b')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084685 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:01', NULL, 969084685, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:13:01')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:01' WHERE `dispatched_services`.`id` = 4239
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084685" for 127.0.0.1 at 2015-02-24 11:13:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084685"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084685 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085284 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085284)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084685
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084685
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084685 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084685 [["request_id", 969084685]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085284 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085284)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084685 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084685 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085284[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084685[0m
[1m[35m (20.9ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 18.2ms | ActiveRecord: 55.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:13:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee08db06fe1ab5e7051bfd908af6f4f2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:03', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:03', 'format', 'journal', 969085285, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:03', 'isbn', 1, '9789810743734', 969085285, '9789810743734')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085285, 'ee08db06fe1ab5e7051bfd908af6f4f2')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084686[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:03', NULL, 969084686, 'BorrowDirect', 'queued', '2015-02-24 16:13:03')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:03' WHERE `dispatched_services`.`id` = 4240
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085285)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084686) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084686)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`id` = 4240 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084686, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:03', 'Choose your delivery location', 969084686, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (21.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:03' WHERE `dispatched_services`.`id` = 4240[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085285 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.7ms)
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084686 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (14.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (16.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085285[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084686[0m
[1m[35m (16.8ms)[0m COMMIT
Completed 200 OK in 368ms (Views: 56.1ms | ActiveRecord: 141.4ms)
Started GET "/borrow_direct/BorrowDirect/969084686?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:13:03 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084686"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084686 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:13:03' WHERE `dispatched_services`.`id` = 4240[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:03', 969084686, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085285 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084686&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 66ms (ActiveRecord: 46.0ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:13:03' WHERE `dispatched_services`.`id` = 4240
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016233[0m
[1m[35m (19.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084686&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:13:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084686", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:13:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085285 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084686[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084686 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686[0m [["request_id", 969084686]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085285 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085285)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084686 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084686 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.4ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085285
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084686
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 164ms (Views: 48.0ms | ActiveRecord: 54.5ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:13:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '876afa8a81a1fb6b6f9b027b326ab568' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:04', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:04', 'format', 'journal', 969085286, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:04', 'isbn', 1, '0109836413', 969085286, '0109836413')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:13:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085286, '876afa8a81a1fb6b6f9b027b326ab568')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084687
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:04', NULL, 969084687, 'BorrowDirect', 'queued', '2015-02-24 16:13:04')
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4241[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084687 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085286)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085286)[0m
[1m[35mServiceResponse Load (2.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084687) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084687)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084687 AND `dispatched_services`.`id` = 4241 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084687, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:04', 'This item is not currently available from BorrowDirect', 969084687, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4241
[1m[36m (21.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084687 LIMIT 1
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[35mDispatchedService Load (2.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085286 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085286)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084687 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084687 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085286[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084687[0m
[1m[35m (17.0ms)[0m COMMIT
Completed 200 OK in 357ms (Views: 47.0ms | ActiveRecord: 142.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:13:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8bbbd0ba5b45ee7d8ee60d766e3e12b6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:04', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:04', 'format', 'journal', 969085287, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:04', 'isbn', 1, '9789810743734', 969085287, '9789810743734')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085287, '8bbbd0ba5b45ee7d8ee60d766e3e12b6')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084688[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:04', NULL, 969084688, 'BorrowDirect', 'queued', '2015-02-24 16:13:04')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4242
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085287)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084688) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084688)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`id` = 4242 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084688, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:04', 'Choose your delivery location', 969084688, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4242[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085287 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084688 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085287[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084688[0m
[1m[35m (18.4ms)[0m COMMIT
Completed 200 OK in 414ms (Views: 54.3ms | ActiveRecord: 139.3ms)
Started GET "/borrow_direct/BorrowDirect/969084688?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:13:04 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084688"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084688 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4242[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:04', 969084688, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085287 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084688&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 65ms (ActiveRecord: 46.0ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:04' WHERE `dispatched_services`.`id` = 4242
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016238[0m
[1m[35m (16.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084688&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A04-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:13:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084688", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:13:04-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085287 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084688[0m
[1m[35m (23.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084688 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688[0m [["request_id", 969084688]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085287 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085287)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.7ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084688 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084688 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085287
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084688
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 120ms (Views: 43.2ms | ActiveRecord: 57.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:13:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23ffbccaed90d745013f7aa371381e24' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:05', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:05', 'format', 'journal', 969085288, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:05', 'isbn', 1, '9789810743734', 969085288, '9789810743734')
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085288, '23ffbccaed90d745013f7aa371381e24')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084689
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:05', NULL, 969084689, 'BorrowDirect', 'queued', '2015-02-24 16:13:05')
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:05' WHERE `dispatched_services`.`id` = 4243[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084689 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085288)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085288)[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084689) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084689)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084689 AND `dispatched_services`.`id` = 4243 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084689, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:05', 'Choose your delivery location', 969084689, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:05' WHERE `dispatched_services`.`id` = 4243
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084689 LIMIT 1
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085288 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085288)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084689 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084689 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084689 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085288
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084689
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 412ms (Views: 51.6ms | ActiveRecord: 143.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:13:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b55067d914c69391c76bdecb83d34b5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:13:05', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:05', 'format', 'journal', 969085289, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:13:05', 'isbn', 1, '9789810743734', 969085289, '9789810743734')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:13:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085289, '5b55067d914c69391c76bdecb83d34b5')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084690
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:13:05', NULL, 969084690, 'BorrowDirect', 'queued', '2015-02-24 16:13:05')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:13:05' WHERE `dispatched_services`.`id` = 4244[0m
[1m[35m (20.7ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085289)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289)[0m
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084690) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084690)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`id` = 4244 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:13:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084690, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:05', 'Choose your delivery location', 969084690, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:13:05' WHERE `dispatched_services`.`id` = 4244
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (4.1ms)
[1m[35mDispatchedService Load (2.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085289 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.7ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084690 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085289
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084690
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 367ms (Views: 52.1ms | ActiveRecord: 144.2ms)
Started GET "/borrow_direct/BorrowDirect/969084690" for 127.0.0.1 at 2015-02-24 11:13:06 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084690"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084690 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:13:06', 969084690, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085289 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084690&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 41ms (ActiveRecord: 26.9ms)
Started GET "/resolve?umlaut.request_id=969084690&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A13%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:13:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084690", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:13:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085289 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084690[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690[0m [["request_id", 969084690]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085289 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085289)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084690 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.4ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084690 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (11.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084690 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085289[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084690[0m
[1m[35m (20.5ms)[0m COMMIT
Completed 200 OK in 123ms (Views: 51.3ms | ActiveRecord: 53.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3fc2e734f1d938f278a422bb33132ccf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:03', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:03', 'format', 'journal', 969085290, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:03', 'isbn', 1, '9789810743734', 969085290, '9789810743734')
[1m[36m (26.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085290, '3fc2e734f1d938f278a422bb33132ccf')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084691
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:04', NULL, 969084691, 'test_bd', 'queued', '2015-02-24 16:14:04')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4245[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084691 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085290)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085290)[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084691) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084691)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084691 AND `dispatched_services`.`id` = 4245 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084691, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (20.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4245[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084691 LIMIT 1[0m
[1m[35mDispatchedService Load (8.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085290 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085290)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084691 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (32.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084691 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.4ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085290[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084691[0m
[1m[35m (19.5ms)[0m COMMIT
Completed 200 OK in 681ms (Views: 140.8ms | ActiveRecord: 171.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:14:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd8784deeeeff8b40348aefd7bf2d4556' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:04', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'format', 'book', 969085291, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'genre', 1, 'book', 969085291, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'author', 1, 'smith', 969085291, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'title', 1, 'some book', 969085291, 'Some Book')[0m
[1m[35m (20.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:14:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085291, 'd8784deeeeff8b40348aefd7bf2d4556')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084692[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:04', NULL, 969084692, 'BorrowDirect', 'queued', '2015-02-24 16:14:04')[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4246
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084692 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085291)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085291)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084692) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084692)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084692 AND `dispatched_services`.`id` = 4246 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084692, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4246
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084692 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085291 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085291)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084692 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084692 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085291[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084692[0m
[1m[35m (22.2ms)[0m COMMIT
Completed 200 OK in 286ms (Views: 20.0ms | ActiveRecord: 160.1ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:14:04 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '84ba1653b9d35143349121604a20ff59' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:04', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'format', 'journal', 969085292, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'genre', 1, 'article', 969085292, 'article')[0m
[1m[35mSQL (2.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'title', 1, 'foo', 969085292, 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:04', 'author', 1, 'bar', 969085292, 'bar')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:14:04', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085292, '84ba1653b9d35143349121604a20ff59')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084693[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:04', NULL, 969084693, 'BorrowDirect', 'queued', '2015-02-24 16:14:04')[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4247
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084693 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085292)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085292)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084693) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084693)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084693 AND `dispatched_services`.`id` = 4247 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:04' WHERE `dispatched_services`.`id` = 4247[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084693 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085292 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085292)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084693 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084693 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085292
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084693
[1m[36m (22.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 245ms (Views: 16.9ms | ActiveRecord: 150.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc4771622e7a8aa69678fc2d7393afdf' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:05', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'format', 'book', 969085293, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'genre', 1, 'book', 969085293, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'title', 1, 'foo', 969085293, 'foo')[0m
[1m[35m (22.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:14:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085293, 'bc4771622e7a8aa69678fc2d7393afdf')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084694 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:05', NULL, 969084694, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:14:05')
[1m[36m (21.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4248[0m
[1m[35m (25.5ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084694" for 127.0.0.1 at 2015-02-24 11:14:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084694"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084694 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085293 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085293)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084694[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084694[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084694 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084694[0m [["request_id", 969084694]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085293 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085293)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084694 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084694 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085293
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084694
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 80ms (Views: 18.6ms | ActiveRecord: 54.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ef9b144a89e628d297975540c0da8ad' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:05', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'format', 'journal', 969085294, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'isbn', 1, '9789810743734', 969085294, '9789810743734')
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085294, '8ef9b144a89e628d297975540c0da8ad')[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084695
[1m[36m (25.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:05', NULL, 969084695, 'BorrowDirect', 'queued', '2015-02-24 16:14:05')
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4249[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085294)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084695) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084695)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`id` = 4249 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084695, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:05', 'Choose your delivery location', 969084695, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4249
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085294 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084695 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085294
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084695
[1m[36m (24.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 320ms (Views: 24.7ms | ActiveRecord: 162.7ms)
Started GET "/borrow_direct/BorrowDirect/969084695?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:14:05 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084695"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084695 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4249
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:05', 969084695, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (21.7ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085294 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084695&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 65ms (ActiveRecord: 49.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4249[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016248
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084695&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084695", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:05-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085294 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084695
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084695 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 [["request_id", 969084695]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085294 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085294)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084695 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084695 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085294[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084695[0m
[1m[35m (19.5ms)[0m COMMIT
Completed 200 OK in 86ms (Views: 21.0ms | ActiveRecord: 55.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:14:05 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '698f950f91f687d7d7473a40d8fabee9' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:05', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'format', 'journal', 969085295, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:05', 'isbn', 1, '0109836413', 969085295, '0109836413')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:14:05', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085295, '698f950f91f687d7d7473a40d8fabee9')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084696[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:05', NULL, 969084696, 'BorrowDirect', 'queued', '2015-02-24 16:14:05')[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:05' WHERE `dispatched_services`.`id` = 4250
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084696 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085295)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085295)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084696) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084696)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (21.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084696 AND `dispatched_services`.`id` = 4250 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084696, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:06', 'This item is not currently available from BorrowDirect', 969084696, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (21.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4250[0m
[1m[35m (28.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084696 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085295 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085295)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084696 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084696 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085295[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084696[0m
[1m[35m (18.9ms)[0m COMMIT
Completed 200 OK in 347ms (Views: 20.0ms | ActiveRecord: 140.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f5cf46ce911e64a34cabeb866e22dacd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:06', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:06', 'format', 'journal', 969085296, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:06', 'isbn', 1, '9789810743734', 969085296, '9789810743734')[0m
[1m[35m (30.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085296, 'f5cf46ce911e64a34cabeb866e22dacd')
[1m[36m (26.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084697[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:06', NULL, 969084697, 'BorrowDirect', 'queued', '2015-02-24 16:14:06')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4251
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085296)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084697) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084697)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`id` = 4251 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084697, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:06', 'Choose your delivery location', 969084697, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4251[0m
[1m[35m (22.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085296 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084697 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085296[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084697[0m
[1m[35m (26.0ms)[0m COMMIT
Completed 200 OK in 329ms (Views: 22.4ms | ActiveRecord: 170.4ms)
Started GET "/borrow_direct/BorrowDirect/969084697?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:14:06 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084697"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084697 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4251[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:06', 969084697, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085296 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084697&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 64ms (ActiveRecord: 49.3ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4251
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016253[0m
[1m[35m (18.5ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084697&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084697", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:06-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085296 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296)[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084697[0m
[1m[35m (25.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084697 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697[0m [["request_id", 969084697]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085296 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085296)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084697 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084697 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085296
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084697
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 90ms (Views: 18.3ms | ActiveRecord: 62.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5862050b99bac20e6c75b69fbf55bae9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:06', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:06', 'format', 'journal', 969085297, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:06', 'isbn', 1, '9789810743734', 969085297, '9789810743734')
[1m[36m (26.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085297, '5862050b99bac20e6c75b69fbf55bae9')[0m
[1m[35m (22.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084698
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:06', NULL, 969084698, 'BorrowDirect', 'queued', '2015-02-24 16:14:06')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:06' WHERE `dispatched_services`.`id` = 4252[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084698 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085297)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085297)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084698) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084698)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084698 AND `dispatched_services`.`id` = 4252 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084698, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:07', 'Choose your delivery location', 969084698, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:07' WHERE `dispatched_services`.`id` = 4252
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084698 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085297 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085297)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084698 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084698 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084698 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085297[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084698[0m
[1m[35m (19.2ms)[0m COMMIT
Completed 200 OK in 350ms (Views: 22.5ms | ActiveRecord: 151.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85d7fcc6d731fc9088ec37ed55f3515a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:07', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:07', 'format', 'journal', 969085298, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:07', 'isbn', 1, '9789810743734', 969085298, '9789810743734')[0m
[1m[35m (21.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085298, '85d7fcc6d731fc9088ec37ed55f3515a')
[1m[36m (26.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084699[0m
[1m[35m (25.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:07', NULL, 969084699, 'BorrowDirect', 'queued', '2015-02-24 16:14:07')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:07' WHERE `dispatched_services`.`id` = 4253
[1m[36m (26.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085298)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084699) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084699)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`id` = 4253 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084699, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (22.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:07', 'Choose your delivery location', 969084699, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:07' WHERE `dispatched_services`.`id` = 4253[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.6ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085298 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084699 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085298[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084699[0m
[1m[35m (23.9ms)[0m COMMIT
Completed 200 OK in 327ms (Views: 22.0ms | ActiveRecord: 170.6ms)
Started GET "/borrow_direct/BorrowDirect/969084699" for 127.0.0.1 at 2015-02-24 11:14:07 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084699"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084699 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:07', 969084699, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085298 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084699&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 24.0ms)
Started GET "/resolve?umlaut.request_id=969084699&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A07-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084699", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:07-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085298 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084699
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 [["request_id", 969084699]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085298 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085298)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084699 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084699 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084699 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085298
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084699
[1m[36m (23.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 88ms (Views: 22.7ms | ActiveRecord: 56.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '23258db5ae301b8ff3b49fc36768602f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:23', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:23', 'format', 'journal', 969085299, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:23', 'isbn', 1, '9789810743734', 969085299, '9789810743734')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085299, '23258db5ae301b8ff3b49fc36768602f')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084700
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:23', NULL, 969084700, 'test_bd', 'queued', '2015-02-24 16:14:23')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:23' WHERE `dispatched_services`.`id` = 4254[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084700 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085299)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085299)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084700) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084700)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084700 AND `dispatched_services`.`id` = 4254 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084700, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (20.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:14:23' WHERE `dispatched_services`.`id` = 4254[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084700 LIMIT 1[0m
[1m[35mDispatchedService Load (7.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085299 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085299)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084700 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (32.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084700 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (96.4ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085299[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084700[0m
[1m[35m (19.2ms)[0m COMMIT
Completed 200 OK in 679ms (Views: 138.1ms | ActiveRecord: 171.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:14:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a378566d1f4eebdf3aa80052393d6efc' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:24', 'some book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'format', 'book', 969085300, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'genre', 1, 'book', 969085300, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'author', 1, 'smith', 969085300, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'title', 1, 'some book', 969085300, 'Some Book')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:14:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085300, 'a378566d1f4eebdf3aa80052393d6efc')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084701[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:24', NULL, 969084701, 'BorrowDirect', 'queued', '2015-02-24 16:14:24')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4255
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084701 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085300)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085300)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084701) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084701)
[1m[36mDispatchedService Load (2.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084701 AND `dispatched_services`.`id` = 4255 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084701, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4255
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084701 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085300 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085300)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (28.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084701 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084701 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085300[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084701[0m
[1m[35m (20.4ms)[0m COMMIT
Completed 200 OK in 301ms (Views: 17.3ms | ActiveRecord: 174.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:14:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '991fbe5465819ea643f593b6e29e6c2f' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:24', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'format', 'journal', 969085301, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'genre', 1, 'article', 969085301, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'title', 1, 'foo', 969085301, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'author', 1, 'bar', 969085301, 'bar')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:14:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085301, '991fbe5465819ea643f593b6e29e6c2f')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084702[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:24', NULL, 969084702, 'BorrowDirect', 'queued', '2015-02-24 16:14:24')[0m
[1m[35m (21.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4256
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084702 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085301)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085301)
[1m[36mServiceResponse Load (2.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084702) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084702)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084702 AND `dispatched_services`.`id` = 4256 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4256[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084702 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085301 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085301)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084702 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084702 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085301
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084702
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 246ms (Views: 17.6ms | ActiveRecord: 147.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bd6f76c1b955a6dd7d4e1c4dc373bdf6' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:14:24', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'format', 'book', 969085302, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'genre', 1, 'book', 969085302, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:24', 'title', 1, 'foo', 969085302, 'foo')[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:14:24', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085302, 'bd6f76c1b955a6dd7d4e1c4dc373bdf6')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084703 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:24', NULL, 969084703, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:14:24')
[1m[36m (22.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:24' WHERE `dispatched_services`.`id` = 4257[0m
[1m[35m (17.5ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084703" for 127.0.0.1 at 2015-02-24 11:14:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084703"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084703 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085302 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085302)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084703[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084703[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084703 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084703[0m [["request_id", 969084703]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085302 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085302)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084703 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084703 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085302
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084703
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 83ms (Views: 19.8ms | ActiveRecord: 55.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd422f01f6f93c264f9cd8a4c6d4ed9b2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:25', '9789810743734')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'format', 'journal', 969085303, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'isbn', 1, '9789810743734', 969085303, '9789810743734')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085303, 'd422f01f6f93c264f9cd8a4c6d4ed9b2')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084704
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:25', NULL, 969084704, 'BorrowDirect', 'queued', '2015-02-24 16:14:25')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4258[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085303)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303)[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084704) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084704)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`id` = 4258 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084704, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:25', 'Choose your delivery location', 969084704, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4258
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085303 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084704 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085303
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084704
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 302ms (Views: 25.2ms | ActiveRecord: 144.4ms)
Started GET "/borrow_direct/BorrowDirect/969084704?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:14:25 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084704"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084704 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4258
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:25', 969084704, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085303 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084704&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 65ms (ActiveRecord: 49.5ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4258[0m
[1m[35m (26.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016263
[1m[36m (22.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084704&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084704", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:25-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085303 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084704
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084704 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 [["request_id", 969084704]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085303 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085303)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084704 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084704 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085303[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084704[0m
[1m[35m (20.7ms)[0m COMMIT
Completed 200 OK in 92ms (Views: 25.8ms | ActiveRecord: 56.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:14:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cc22279439408214b46ef4298091579' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:25', '0109836413')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'format', 'journal', 969085304, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'isbn', 1, '0109836413', 969085304, '0109836413')[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:14:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085304, '8cc22279439408214b46ef4298091579')
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084705[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:25', NULL, 969084705, 'BorrowDirect', 'queued', '2015-02-24 16:14:25')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4259
[1m[36m (21.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084705 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085304)[0m
[1m[35mReferentValue Load (1.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085304)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084705) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084705)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084705 AND `dispatched_services`.`id` = 4259 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084705, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:25', 'This item is not currently available from BorrowDirect', 969084705, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (25.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:25' WHERE `dispatched_services`.`id` = 4259[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084705 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085304 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085304)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084705 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084705 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085304
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084705
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 348ms (Views: 20.5ms | ActiveRecord: 149.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8207b972bf63034ab3f643cc21997dca' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:25', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'format', 'journal', 969085305, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:25', 'isbn', 1, '9789810743734', 969085305, '9789810743734')
[1m[36m (23.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085305, '8207b972bf63034ab3f643cc21997dca')[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084706
[1m[36m (22.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:26', NULL, 969084706, 'BorrowDirect', 'queued', '2015-02-24 16:14:26')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4260[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085305)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305)[0m
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084706) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084706)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`id` = 4260 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084706, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:26', 'Choose your delivery location', 969084706, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4260
[1m[36m (24.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085305 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084706 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085305
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084706
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 313ms (Views: 21.9ms | ActiveRecord: 150.2ms)
Started GET "/borrow_direct/BorrowDirect/969084706?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:14:26 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084706"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084706 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4260
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:26', 969084706, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085305 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084706&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 59ms (ActiveRecord: 43.8ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4260[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016268
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084706&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084706", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:26-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085305 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084706
[1m[36m (23.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084706 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 [["request_id", 969084706]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085305 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085305)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084706 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084706 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085305[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084706[0m
[1m[35m (20.4ms)[0m COMMIT
Completed 200 OK in 88ms (Views: 18.6ms | ActiveRecord: 59.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17e68d58c458639cd335a5ee754f0b29' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:26', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:26', 'format', 'journal', 969085306, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:26', 'isbn', 1, '9789810743734', 969085306, '9789810743734')[0m
[1m[35m (25.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085306, '17e68d58c458639cd335a5ee754f0b29')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084707[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:26', NULL, 969084707, 'BorrowDirect', 'queued', '2015-02-24 16:14:26')[0m
[1m[35m (20.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4261
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084707 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085306)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085306)
[1m[36mServiceResponse Load (2.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084707) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084707)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084707 AND `dispatched_services`.`id` = 4261 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084707, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:26', 'Choose your delivery location', 969084707, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4261[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084707 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085306 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085306)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084707 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084707 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084707 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085306[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084707[0m
[1m[35m (18.1ms)[0m COMMIT
Completed 200 OK in 341ms (Views: 21.6ms | ActiveRecord: 149.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ebd5a013c7dfde1cb46c7a65460f681f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:26', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:26', 'format', 'journal', 969085307, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:26', 'isbn', 1, '9789810743734', 969085307, '9789810743734')[0m
[1m[35m (21.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085307, 'ebd5a013c7dfde1cb46c7a65460f681f')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084708[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:26', NULL, 969084708, 'BorrowDirect', 'queued', '2015-02-24 16:14:26')[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:26' WHERE `dispatched_services`.`id` = 4262
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085307)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084708) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084708)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`id` = 4262 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084708, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:27', 'Choose your delivery location', 969084708, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (21.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:14:27' WHERE `dispatched_services`.`id` = 4262[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085307 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084708 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085307[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084708[0m
[1m[35m (18.7ms)[0m COMMIT
Completed 200 OK in 296ms (Views: 21.5ms | ActiveRecord: 142.5ms)
Started GET "/borrow_direct/BorrowDirect/969084708" for 127.0.0.1 at 2015-02-24 11:14:27 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084708"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084708 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:14:27', 969084708, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085307 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084708&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.6ms)
Started GET "/resolve?umlaut.request_id=969084708&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A14%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:14:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084708", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:14:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085307 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084708
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 [["request_id", 969084708]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085307 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085307)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084708 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084708 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084708 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085307
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084708
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 85ms (Views: 22.3ms | ActiveRecord: 53.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:14:40 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '061e340bc0048a56cc171f06e44761c0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:14:40', '9789810743734')
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:40', 'format', 'journal', 969085308, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:14:40', 'isbn', 1, '9789810743734', 969085308, '9789810743734')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:14:40', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085308, '061e340bc0048a56cc171f06e44761c0')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084709
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:14:40', NULL, 969084709, 'test_bd', 'queued', '2015-02-24 16:14:40')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:14:40' WHERE `dispatched_services`.`id` = 4263[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084709 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085308)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085308)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084709) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084709)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084709 AND `dispatched_services`.`id` = 4263 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:14:40', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084709, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (17.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:14:40' WHERE `dispatched_services`.`id` = 4263[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084709 LIMIT 1[0m
[1m[35mDispatchedService Load (7.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084709[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085308 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085308)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084709 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:14 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '755fcf37966e4e89986d316f541ed2e7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:15', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'format', 'journal', 969085309, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'isbn', 1, '9789810743734', 969085309, '9789810743734')
[1m[36m (51.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085309, '755fcf37966e4e89986d316f541ed2e7')[0m
[1m[35m (27.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084710
[1m[36m (21.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:15', NULL, 969084710, 'test_bd', 'queued', '2015-02-24 16:15:15')
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:15' WHERE `dispatched_services`.`id` = 4264[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084710 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085309)
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085309)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084710) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084710)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084710 AND `dispatched_services`.`id` = 4264 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084710, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (21.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:15:15' WHERE `dispatched_services`.`id` = 4264[0m
[1m[35m (44.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084710 LIMIT 1[0m
[1m[35mDispatchedService Load (7.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085309 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085309)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (2.0ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084710 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (36.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084710 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.5ms)
[1m[36mPermalink Load (1.6ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085309[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084710[0m
[1m[35m (27.5ms)[0m COMMIT
Completed 200 OK in 761ms (Views: 141.7ms | ActiveRecord: 224.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:15:15 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de5219c00e19d277a9fcc35b1114bdbf' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:15', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'format', 'book', 969085310, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'genre', 1, 'book', 969085310, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'author', 1, 'smith', 969085310, 'Smith')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:15', 'title', 1, 'some book', 969085310, 'Some Book')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:15:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085310, 'de5219c00e19d277a9fcc35b1114bdbf')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084711[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:15', NULL, 969084711, 'BorrowDirect', 'queued', '2015-02-24 16:15:15')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4265
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084711 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085310)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085310)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084711) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084711)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084711 AND `dispatched_services`.`id` = 4265 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084711, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4265
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084711 LIMIT 1
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085310 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085310)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084711 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (6.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084711 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085310[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084711[0m
[1m[35m (20.1ms)[0m COMMIT
Completed 200 OK in 296ms (Views: 20.1ms | ActiveRecord: 166.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:15:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71ea49d165479a5a2d96d8272e11a6c8' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:16', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'format', 'journal', 969085311, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'genre', 1, 'article', 969085311, 'article')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'title', 1, 'foo', 969085311, 'foo')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'author', 1, 'bar', 969085311, 'bar')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:15:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085311, '71ea49d165479a5a2d96d8272e11a6c8')
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084712[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:16', NULL, 969084712, 'BorrowDirect', 'queued', '2015-02-24 16:15:16')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4266
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084712 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085311)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085311)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084712) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084712)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (25.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084712 AND `dispatched_services`.`id` = 4266 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4266[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084712 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085311 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085311)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084712 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084712 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085311
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084712
[1m[36m (23.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 255ms (Views: 16.6ms | ActiveRecord: 150.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '296ed4463c43b57964df4ed605ba7409' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:16', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'format', 'book', 969085312, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'genre', 1, 'book', 969085312, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'title', 1, 'foo', 969085312, 'foo')[0m
[1m[35m (20.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:15:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085312, '296ed4463c43b57964df4ed605ba7409')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084713 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:16', NULL, 969084713, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:15:16')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4267[0m
[1m[35m (72.4ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084713" for 127.0.0.1 at 2015-02-24 11:15:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084713"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084713 LIMIT 1[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085312 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085312)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084713[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084713[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084713 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084713[0m [["request_id", 969084713]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085312 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085312)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084713 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084713 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (2.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085312
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084713
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 87ms (Views: 19.6ms | ActiveRecord: 59.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'deef1716d098645ab8df3450669b3880' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:16', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'format', 'journal', 969085313, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:16', 'isbn', 1, '9789810743734', 969085313, '9789810743734')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085313, 'deef1716d098645ab8df3450669b3880')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084714
[1m[36m (23.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:16', NULL, 969084714, 'BorrowDirect', 'queued', '2015-02-24 16:15:16')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:16' WHERE `dispatched_services`.`id` = 4268[0m
[1m[35m (32.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085313)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084714) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084714)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (31.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`id` = 4268 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084714, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (65.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:17', 'Choose your delivery location', 969084714, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4268
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085313 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084714 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085313
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084714
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 382ms (Views: 25.8ms | ActiveRecord: 160.8ms)
Started GET "/borrow_direct/BorrowDirect/969084714?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:17 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084714"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084714 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4268
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:17', 969084714, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.9ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085313 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084714&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 60ms (ActiveRecord: 50.2ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4268[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016279
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084714&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084714", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085313 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084714
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084714 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 [["request_id", 969084714]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085313 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085313)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084714 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084714 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085313[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084714[0m
[1m[35m (18.8ms)[0m COMMIT
Completed 200 OK in 82ms (Views: 20.4ms | ActiveRecord: 51.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:15:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a36dd5cf5734e403035b2671bb07ffbc' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:17', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:17', 'format', 'journal', 969085314, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:17', 'isbn', 1, '0109836413', 969085314, '0109836413')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:15:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085314, 'a36dd5cf5734e403035b2671bb07ffbc')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084715[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:17', NULL, 969084715, 'BorrowDirect', 'queued', '2015-02-24 16:15:17')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4269
[1m[36m (24.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084715 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085314)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085314)
[1m[36mServiceResponse Load (2.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084715) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084715)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (21.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084715 AND `dispatched_services`.`id` = 4269 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084715, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:17', 'This item is not currently available from BorrowDirect', 969084715, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4269[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084715 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085314 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085314)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084715 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084715 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085314
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084715
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 342ms (Views: 19.8ms | ActiveRecord: 147.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '337e6267ce360ff65c2ec4621db83b8c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:17', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:17', 'format', 'journal', 969085315, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:17', 'isbn', 1, '9789810743734', 969085315, '9789810743734')
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085315, '337e6267ce360ff65c2ec4621db83b8c')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084716
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:17', NULL, 969084716, 'BorrowDirect', 'queued', '2015-02-24 16:15:17')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4270[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085315)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084716) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084716)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`id` = 4270 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084716, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:17', 'Choose your delivery location', 969084716, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:17' WHERE `dispatched_services`.`id` = 4270
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085315 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084716 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085315
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084716
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 304ms (Views: 23.1ms | ActiveRecord: 143.8ms)
Started GET "/borrow_direct/BorrowDirect/969084716?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:18 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084716"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084716 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4270
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:18', 969084716, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085315 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084716&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 65ms (ActiveRecord: 49.3ms)
[1m[36mDispatchedService Load (2.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4270[0m
[1m[35m (27.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016284
[1m[36m (21.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084716&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084716", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085315 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084716
[1m[36m (22.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084716 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 [["request_id", 969084716]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085315 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085315)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084716 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084716 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085315[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084716[0m
[1m[35m (19.3ms)[0m COMMIT
Completed 200 OK in 84ms (Views: 18.2ms | ActiveRecord: 56.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77ec687cab1cd71b11fdf23f189aed5b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:18', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:18', 'format', 'journal', 969085316, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:18', 'isbn', 1, '9789810743734', 969085316, '9789810743734')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085316, '77ec687cab1cd71b11fdf23f189aed5b')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084717[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:18', NULL, 969084717, 'BorrowDirect', 'queued', '2015-02-24 16:15:18')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4271
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084717 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085316)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085316)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084717) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084717)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084717 AND `dispatched_services`.`id` = 4271 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084717, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:18', 'Choose your delivery location', 969084717, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4271[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084717 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085316 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085316)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084717 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084717 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084717 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085316[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084717[0m
[1m[35m (20.3ms)[0m COMMIT
Completed 200 OK in 338ms (Views: 22.0ms | ActiveRecord: 142.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'edf72dbedec866ecbb14f9e90e96b0e7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:18', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:18', 'format', 'journal', 969085317, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:18', 'isbn', 1, '9789810743734', 969085317, '9789810743734')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085317, 'edf72dbedec866ecbb14f9e90e96b0e7')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084718[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:18', NULL, 969084718, 'BorrowDirect', 'queued', '2015-02-24 16:15:18')[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4272
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085317)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084718) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084718)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`id` = 4272 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084718, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:18', 'Choose your delivery location', 969084718, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:18' WHERE `dispatched_services`.`id` = 4272[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085317 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084718 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085317[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084718[0m
[1m[35m (20.7ms)[0m COMMIT
Completed 200 OK in 294ms (Views: 22.3ms | ActiveRecord: 143.3ms)
Started GET "/borrow_direct/BorrowDirect/969084718" for 127.0.0.1 at 2015-02-24 11:15:18 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084718"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084718 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:18', 969084718, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085317 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084718&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 22.7ms)
Started GET "/resolve?umlaut.request_id=969084718&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084718", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085317 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084718
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 [["request_id", 969084718]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085317 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085317)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084718 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084718 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084718 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085317
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084718
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 84ms (Views: 21.7ms | ActiveRecord: 53.9ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd850eb76e68c7b5aee14786e4ac0eba' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:32', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:32', 'format', 'journal', 969085318, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:32', 'isbn', 1, '9789810743734', 969085318, '9789810743734')
[1m[36m (42.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085318, 'dd850eb76e68c7b5aee14786e4ac0eba')[0m
[1m[35m (23.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084719
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:32', NULL, 969084719, 'test_bd', 'queued', '2015-02-24 16:15:32')
[1m[36m (45.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:32' WHERE `dispatched_services`.`id` = 4273[0m
[1m[35m (23.6ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084719 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085318)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085318)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084719) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084719)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (26.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084719 AND `dispatched_services`.`id` = 4273 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084719, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (2.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4273[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084719 LIMIT 1[0m
[1m[35mDispatchedService Load (7.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085318 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085318)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084719 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084719 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (98.8ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085318
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084719
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 742ms (Views: 139.3ms | ActiveRecord: 229.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:15:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c4f91c9b50a56c4cef550ca7c2ce3340' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:33', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'format', 'book', 969085319, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'genre', 1, 'book', 969085319, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'author', 1, 'smith', 969085319, 'Smith')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'title', 1, 'some book', 969085319, 'Some Book')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:15:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085319, 'c4f91c9b50a56c4cef550ca7c2ce3340')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084720
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:33', NULL, 969084720, 'BorrowDirect', 'queued', '2015-02-24 16:15:33')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4274[0m
[1m[35m (22.0ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084720 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085319)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085319)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084720) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084720)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (22.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084720 AND `dispatched_services`.`id` = 4274 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084720, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4274[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084720 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085319 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085319)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084720 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084720 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085319
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084720
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 284ms (Views: 19.7ms | ActiveRecord: 154.5ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:15:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0d5457de7d99ffd6e103d35a7fabd2fd' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:33', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'format', 'journal', 969085320, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'genre', 1, 'article', 969085320, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'title', 1, 'foo', 969085320, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'author', 1, 'bar', 969085320, 'bar')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:15:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085320, '0d5457de7d99ffd6e103d35a7fabd2fd')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084721
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:33', NULL, 969084721, 'BorrowDirect', 'queued', '2015-02-24 16:15:33')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4275[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084721 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085320)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085320)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084721) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084721)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084721 AND `dispatched_services`.`id` = 4275 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:33' WHERE `dispatched_services`.`id` = 4275
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084721 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085320 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085320)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084721 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084721 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085320[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084721[0m
[1m[35m (19.6ms)[0m COMMIT
Completed 200 OK in 238ms (Views: 18.1ms | ActiveRecord: 138.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65e4ee3a9d135d967e4a5f772826d8d9' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:33', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'format', 'book', 969085321, 'book')
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'genre', 1, 'book', 969085321, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:33', 'title', 1, 'foo', 969085321, 'foo')
[1m[36m (21.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:15:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085321, '65e4ee3a9d135d967e4a5f772826d8d9')[0m
[1m[35m (21.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084722 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:33', NULL, 969084722, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:15:33')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4276
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084722" for 127.0.0.1 at 2015-02-24 11:15:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084722"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084722 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085321 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085321)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084722
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084722
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084722 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084722 [["request_id", 969084722]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085321 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085321)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084722 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084722 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085321[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084722[0m
[1m[35m (19.9ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 19.1ms | ActiveRecord: 54.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39852ff517cbcc65a0c57c19d21fb2d2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:34', '9789810743734')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:34', 'format', 'journal', 969085322, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:34', 'isbn', 1, '9789810743734', 969085322, '9789810743734')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085322, '39852ff517cbcc65a0c57c19d21fb2d2')
[1m[36m (21.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084723[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:34', NULL, 969084723, 'BorrowDirect', 'queued', '2015-02-24 16:15:34')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4277
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085322)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084723) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084723)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`id` = 4277 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084723, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:34', 'Choose your delivery location', 969084723, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4277[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085322 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084723 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085322[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084723[0m
[1m[35m (18.6ms)[0m COMMIT
Completed 200 OK in 296ms (Views: 24.3ms | ActiveRecord: 143.5ms)
Started GET "/borrow_direct/BorrowDirect/969084723?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:34 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084723"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084723 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4277[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:34', 969084723, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085322 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084723&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 58ms (ActiveRecord: 48.3ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4277
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016294[0m
[1m[35m (19.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084723&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084723", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085322 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084723[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084723 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723[0m [["request_id", 969084723]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085322 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085322)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084723 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084723 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085322
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084723
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 82ms (Views: 20.9ms | ActiveRecord: 51.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:15:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b8ac72b653962854ad0b5f5243af1105' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:34', '0109836413')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:34', 'format', 'journal', 969085323, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:34', 'isbn', 1, '0109836413', 969085323, '0109836413')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:15:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085323, 'b8ac72b653962854ad0b5f5243af1105')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084724
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:34', NULL, 969084724, 'BorrowDirect', 'queued', '2015-02-24 16:15:34')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4278[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084724 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085323)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085323)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084724) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084724)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084724 AND `dispatched_services`.`id` = 4278 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084724, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:34', 'This item is not currently available from BorrowDirect', 969084724, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (23.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:34' WHERE `dispatched_services`.`id` = 4278
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084724 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085323 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085323)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084724 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084724 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085323[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084724[0m
[1m[35m (19.6ms)[0m COMMIT
Completed 200 OK in 331ms (Views: 20.0ms | ActiveRecord: 136.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a929ac668124fad7fb514e0cb7126c44' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:35', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'format', 'journal', 969085324, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'isbn', 1, '9789810743734', 969085324, '9789810743734')[0m
[1m[35m (28.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085324, 'a929ac668124fad7fb514e0cb7126c44')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084725[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:35', NULL, 969084725, 'BorrowDirect', 'queued', '2015-02-24 16:15:35')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4279
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085324)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084725) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084725)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`id` = 4279 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084725, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:35', 'Choose your delivery location', 969084725, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4279[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085324 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084725 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085324[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084725[0m
[1m[35m (19.2ms)[0m COMMIT
Completed 200 OK in 310ms (Views: 21.5ms | ActiveRecord: 155.0ms)
Started GET "/borrow_direct/BorrowDirect/969084725?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:35 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084725"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084725 ORDER BY id ASC
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4279[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:35', 969084725, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (22.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085324 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084725&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 61ms (ActiveRecord: 52.2ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4279
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016299[0m
[1m[35m (19.9ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084725&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084725", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085324 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084725[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084725 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725[0m [["request_id", 969084725]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085324 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085324)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084725 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084725 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085324
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084725
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 81ms (Views: 18.9ms | ActiveRecord: 53.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c59c8580aa6e84706c617373d9c1158e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:35', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'format', 'journal', 969085325, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'isbn', 1, '9789810743734', 969085325, '9789810743734')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085325, 'c59c8580aa6e84706c617373d9c1158e')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084726
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:35', NULL, 969084726, 'BorrowDirect', 'queued', '2015-02-24 16:15:35')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4280[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084726 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085325)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085325)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084726) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084726)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084726 AND `dispatched_services`.`id` = 4280 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084726, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:35', 'Choose your delivery location', 969084726, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:35' WHERE `dispatched_services`.`id` = 4280
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084726 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085325 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085325)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084726 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084726 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084726 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085325
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084726
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 339ms (Views: 21.9ms | ActiveRecord: 140.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45d8336a7715c4a43d577393402895bc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:35', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'format', 'journal', 969085326, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:35', 'isbn', 1, '9789810743734', 969085326, '9789810743734')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085326, '45d8336a7715c4a43d577393402895bc')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084727
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:36', NULL, 969084727, 'BorrowDirect', 'queued', '2015-02-24 16:15:36')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:36' WHERE `dispatched_services`.`id` = 4281[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085326)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084727) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084727)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`id` = 4281 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084727, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:36', 'Choose your delivery location', 969084727, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:36' WHERE `dispatched_services`.`id` = 4281
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085326 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084727 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085326
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084727
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 294ms (Views: 22.6ms | ActiveRecord: 143.4ms)
Started GET "/borrow_direct/BorrowDirect/969084727" for 127.0.0.1 at 2015-02-24 11:15:36 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084727"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084727 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:36', 969084727, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085326 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084727&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 26.0ms)
Started GET "/resolve?umlaut.request_id=969084727&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084727", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085326 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084727[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727[0m [["request_id", 969084727]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085326 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085326)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084727 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084727 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084727 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085326[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084727[0m
[1m[35m (18.4ms)[0m COMMIT
Completed 200 OK in 84ms (Views: 22.8ms | ActiveRecord: 51.9ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a44e08bead6b7f1375f1cbf87bf1dff0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:46', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:46', 'format', 'journal', 969085327, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:46', 'isbn', 1, '9789810743734', 969085327, '9789810743734')
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085327, 'a44e08bead6b7f1375f1cbf87bf1dff0')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084728
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:47', NULL, 969084728, 'test_bd', 'queued', '2015-02-24 16:15:47')
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4282[0m
[1m[35m (22.5ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084728 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085327)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085327)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084728) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084728)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (47.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084728 AND `dispatched_services`.`id` = 4282 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084728, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (27.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4282[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084728 LIMIT 1[0m
[1m[35mDispatchedService Load (2.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085327 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085327)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (2.0ms)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084728 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (39.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084728 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (99.5ms)
[1m[36mPermalink Load (1.6ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085327[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (10.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084728[0m
[1m[35m (18.9ms)[0m COMMIT
Completed 200 OK in 727ms (Views: 142.7ms | ActiveRecord: 173.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:15:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7527e901003c8bd04b5d935352405c73' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:47', 'some book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'format', 'book', 969085328, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'genre', 1, 'book', 969085328, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'author', 1, 'smith', 969085328, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'title', 1, 'some book', 969085328, 'Some Book')[0m
[1m[35m (22.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:15:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085328, '7527e901003c8bd04b5d935352405c73')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084729[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:47', NULL, 969084729, 'BorrowDirect', 'queued', '2015-02-24 16:15:47')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4283
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084729 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085328)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085328)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084729) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084729)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (22.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084729 AND `dispatched_services`.`id` = 4283 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084729, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4283
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084729 LIMIT 1
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085328 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085328)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084729 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084729 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085328[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084729[0m
[1m[35m (18.0ms)[0m COMMIT
Completed 200 OK in 283ms (Views: 20.4ms | ActiveRecord: 155.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:15:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e4b6fabd6f6759082e7f4a50e43eb9a7' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:47', 'foo')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'format', 'journal', 969085329, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'genre', 1, 'article', 969085329, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'title', 1, 'foo', 969085329, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:47', 'author', 1, 'bar', 969085329, 'bar')[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:15:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085329, 'e4b6fabd6f6759082e7f4a50e43eb9a7')
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084730[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:47', NULL, 969084730, 'BorrowDirect', 'queued', '2015-02-24 16:15:47')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:47' WHERE `dispatched_services`.`id` = 4284
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084730 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085329)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085329)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084730) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084730)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084730 AND `dispatched_services`.`id` = 4284 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4284[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084730 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085329 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085329)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084730 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084730 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085329
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084730
[1m[36m (22.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 246ms (Views: 16.9ms | ActiveRecord: 147.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd277d83259b08b1fc00f6ec4019d354' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:15:48', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'format', 'book', 969085330, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'genre', 1, 'book', 969085330, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'title', 1, 'foo', 969085330, 'foo')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:15:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085330, 'dd277d83259b08b1fc00f6ec4019d354')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084731 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:48', NULL, 969084731, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:15:48')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4285[0m
[1m[35m (21.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084731" for 127.0.0.1 at 2015-02-24 11:15:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084731"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084731 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085330 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085330)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084731[0m
[1m[35m (24.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084731[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084731 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084731[0m [["request_id", 969084731]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085330 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085330)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084731 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084731 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085330
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084731
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 83ms (Views: 18.5ms | ActiveRecord: 56.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1bda42ecd6a2d0ab0f60285a1e08cad1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:48', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'format', 'journal', 969085331, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'isbn', 1, '9789810743734', 969085331, '9789810743734')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085331, '1bda42ecd6a2d0ab0f60285a1e08cad1')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084732
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:48', NULL, 969084732, 'BorrowDirect', 'queued', '2015-02-24 16:15:48')
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4286[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085331)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084732) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084732)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`id` = 4286 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084732, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:48', 'Choose your delivery location', 969084732, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (21.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4286
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085331 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084732 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085331
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084732
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 304ms (Views: 25.5ms | ActiveRecord: 143.3ms)
Started GET "/borrow_direct/BorrowDirect/969084732?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:48 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084732"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084732 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4286
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:48', 969084732, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085331 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084732&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 55ms (ActiveRecord: 44.9ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4286[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016309
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084732&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084732", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085331 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084732
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084732 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 [["request_id", 969084732]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085331 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085331)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084732 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084732 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085331[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084732[0m
[1m[35m (20.6ms)[0m COMMIT
Completed 200 OK in 89ms (Views: 21.2ms | ActiveRecord: 58.5ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:15:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6dc638681234314190f9e2a8510358b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (2.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:48', '0109836413')[0m
[1m[35mSQL (2.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'format', 'journal', 969085332, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:48', 'isbn', 1, '0109836413', 969085332, '0109836413')[0m
[1m[35m (23.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:15:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085332, 'e6dc638681234314190f9e2a8510358b')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084733[0m
[1m[35m (23.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:48', NULL, 969084733, 'BorrowDirect', 'queued', '2015-02-24 16:15:48')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:48' WHERE `dispatched_services`.`id` = 4287
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084733 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085332)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085332)
[1m[36mServiceResponse Load (2.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084733) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084733)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084733 AND `dispatched_services`.`id` = 4287 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084733, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:49', 'This item is not currently available from BorrowDirect', 969084733, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4287[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084733 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085332 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085332)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084733 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084733 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085332
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084733
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 347ms (Views: 20.1ms | ActiveRecord: 150.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b982e54757165f4b2bf9e63f33b309d0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:49', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:49', 'format', 'journal', 969085333, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:49', 'isbn', 1, '9789810743734', 969085333, '9789810743734')
[1m[36m (29.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085333, 'b982e54757165f4b2bf9e63f33b309d0')[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084734
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:49', NULL, 969084734, 'BorrowDirect', 'queued', '2015-02-24 16:15:49')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4288[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085333)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333)[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084734) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084734)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`id` = 4288 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084734, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:49', 'Choose your delivery location', 969084734, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4288
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085333 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084734 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085333
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084734
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 308ms (Views: 24.0ms | ActiveRecord: 152.6ms)
Started GET "/borrow_direct/BorrowDirect/969084734?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:15:49 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084734"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084734 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4288
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:49', 969084734, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.0ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085333 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084734&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 62ms (ActiveRecord: 46.8ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4288[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016314
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084734&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084734", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085333 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084734
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084734 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 [["request_id", 969084734]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085333 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085333)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084734 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084734 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085333[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084734[0m
[1m[35m (18.4ms)[0m COMMIT
Completed 200 OK in 80ms (Views: 18.7ms | ActiveRecord: 52.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '267026e26cba6f902ee7d41e50b455c1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:49', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:49', 'format', 'journal', 969085334, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:49', 'isbn', 1, '9789810743734', 969085334, '9789810743734')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085334, '267026e26cba6f902ee7d41e50b455c1')
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084735[0m
[1m[35m (25.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:49', NULL, 969084735, 'BorrowDirect', 'queued', '2015-02-24 16:15:49')[0m
[1m[35m (24.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:49' WHERE `dispatched_services`.`id` = 4289
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084735 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085334)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085334)
[1m[36mServiceResponse Load (2.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084735) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084735)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (21.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084735 AND `dispatched_services`.`id` = 4289 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084735, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (28.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:50', 'Choose your delivery location', 969084735, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:50' WHERE `dispatched_services`.`id` = 4289[0m
[1m[35m (25.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084735 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085334 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085334)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084735 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084735 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084735 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085334[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084735[0m
[1m[35m (19.2ms)[0m COMMIT
Completed 200 OK in 372ms (Views: 22.1ms | ActiveRecord: 158.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:15:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f0e57bb2e4e0df22832c1d0785ad5328' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:15:50', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:50', 'format', 'journal', 969085335, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:15:50', 'isbn', 1, '9789810743734', 969085335, '9789810743734')[0m
[1m[35m (24.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:15:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085335, 'f0e57bb2e4e0df22832c1d0785ad5328')
[1m[36m (23.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084736[0m
[1m[35m (22.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:15:50', NULL, 969084736, 'BorrowDirect', 'queued', '2015-02-24 16:15:50')[0m
[1m[35m (25.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:15:50' WHERE `dispatched_services`.`id` = 4290
[1m[36m (20.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085335)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084736) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084736)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`id` = 4290 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:15:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084736, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:50', 'Choose your delivery location', 969084736, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (24.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:15:50' WHERE `dispatched_services`.`id` = 4290[0m
[1m[35m (54.3ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085335 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084736 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085335[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084736[0m
[1m[35m (19.2ms)[0m COMMIT
Completed 200 OK in 360ms (Views: 20.5ms | ActiveRecord: 162.4ms)
Started GET "/borrow_direct/BorrowDirect/969084736" for 127.0.0.1 at 2015-02-24 11:15:50 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084736"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084736 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:15:50', 969084736, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085335 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084736&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 23.4ms)
Started GET "/resolve?umlaut.request_id=969084736&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A15%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:15:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084736", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:15:50-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1
[1m[36mReferent Load (0.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085335 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084736
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 [["request_id", 969084736]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085335 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085335)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084736 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084736 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084736 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085335
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084736
[1m[36m (27.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 92ms (Views: 22.3ms | ActiveRecord: 61.0ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b5259f747fe78f5b66e30043dd9eaa7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:27', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:27', 'format', 'journal', 969085336, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:27', 'isbn', 1, '9789810743734', 969085336, '9789810743734')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:27', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085336, '9b5259f747fe78f5b66e30043dd9eaa7')[0m
[1m[35m (62.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084737
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:27', NULL, 969084737, 'test_bd', 'queued', '2015-02-24 16:17:27')
[1m[36m (27.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:27' WHERE `dispatched_services`.`id` = 4291[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084737 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085336)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085336)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084737) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084737)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (31.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084737 AND `dispatched_services`.`id` = 4291 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:28', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084737, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (20.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:17:28' WHERE `dispatched_services`.`id` = 4291[0m
[1m[35m (24.2ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084737 LIMIT 1[0m
[1m[35mDispatchedService Load (7.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085336 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085336)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084737 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (35.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (38.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9535.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9536.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084737 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (9637.9ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085336
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (13.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (1.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084737
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 10319ms (Views: 9708.5ms | ActiveRecord: 223.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:17:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da80795c29a3603f085036e58a745722' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:17:38', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'format', 'book', 969085337, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'genre', 1, 'book', 969085337, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'author', 1, 'smith', 969085337, 'Smith')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'title', 1, 'some book', 969085337, 'Some Book')
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:17:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085337, 'da80795c29a3603f085036e58a745722')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084738
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:38', NULL, 969084738, 'BorrowDirect', 'queued', '2015-02-24 16:17:38')
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4292[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084738 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085337)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085337)[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084738) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084738)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084738 AND `dispatched_services`.`id` = 4292 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:38', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084738, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4292[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084738 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.1ms)
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085337 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085337)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (11.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.6ms)
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084738 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084738 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085337[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084738[0m
[1m[35m (19.0ms)[0m COMMIT
Completed 200 OK in 336ms (Views: 46.0ms | ActiveRecord: 150.0ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:17:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (2.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6cb0aa43dcadd1b41cc88e08ab9a403b' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:17:38', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'format', 'journal', 969085338, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'genre', 1, 'article', 969085338, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'title', 1, 'foo', 969085338, 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'author', 1, 'bar', 969085338, 'bar')[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:17:38', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085338, '6cb0aa43dcadd1b41cc88e08ab9a403b')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084739[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:38', NULL, 969084739, 'BorrowDirect', 'queued', '2015-02-24 16:17:38')[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4293
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084739 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085338)[0m
[1m[35mReferentValue Load (1.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085338)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084739) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084739)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084739 AND `dispatched_services`.`id` = 4293 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4293[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084739 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085338 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085338)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.5ms)
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084739 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084739 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.6ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085338
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084739
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 337ms (Views: 41.2ms | ActiveRecord: 145.4ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6948613a2c2486888ad5e5af033e5c7' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:17:38', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'format', 'book', 969085339, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'genre', 1, 'book', 969085339, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:38', 'title', 1, 'foo', 969085339, 'foo')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:17:38', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085339, 'c6948613a2c2486888ad5e5af033e5c7')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084740 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:38', NULL, 969084740, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:17:38')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:38' WHERE `dispatched_services`.`id` = 4294[0m
[1m[35m (19.8ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084740" for 127.0.0.1 at 2015-02-24 11:17:38 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084740"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084740 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085339 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085339)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084740[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084740[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084740 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084740[0m [["request_id", 969084740]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085339 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085339)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.4ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084740 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084740 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085339
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084740
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 117ms (Views: 44.2ms | ActiveRecord: 57.4ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d78f6637f6c8f56cd229309b840e1d8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:39', '9789810743734')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:39', 'format', 'journal', 969085340, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:39', 'isbn', 1, '9789810743734', 969085340, '9789810743734')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (3.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:39', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085340, '8d78f6637f6c8f56cd229309b840e1d8')[0m
[1m[35m (25.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084741
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:39', NULL, 969084741, 'BorrowDirect', 'queued', '2015-02-24 16:17:39')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:39' WHERE `dispatched_services`.`id` = 4295[0m
[1m[35m (24.3ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085340)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340)[0m
[1m[35mServiceResponse Load (2.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084741) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084741)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (22.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`id` = 4295 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:39', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084741, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:39', 'Choose your delivery location', 969084741, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:39' WHERE `dispatched_services`.`id` = 4295
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085340 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084741 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.5ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (13.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (16.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085340
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084741
[1m[36m (19.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 424ms (Views: 54.9ms | ActiveRecord: 153.2ms)
Started GET "/borrow_direct/BorrowDirect/969084741?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:17:39 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084741"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084741 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:17:39' WHERE `dispatched_services`.`id` = 4295
[1m[36m (21.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:39', 969084741, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085340 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084741&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 71ms (ActiveRecord: 51.5ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:17:39' WHERE `dispatched_services`.`id` = 4295[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016324
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084741&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A39-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:17:39 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084741", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:17:39-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085340 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084741
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084741 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 [["request_id", 969084741]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085340 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085340)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084741 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2121.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2123.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084741 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085340[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084741[0m
[1m[35m (17.7ms)[0m COMMIT
Completed 200 OK in 2238ms (Views: 2165.3ms | ActiveRecord: 54.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:17:41 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26af2a3be6a9d06c45075e4a078698bf' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:41', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:41', 'format', 'journal', 969085341, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:41', 'isbn', 1, '0109836413', 969085341, '0109836413')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:17:41', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085341, '26af2a3be6a9d06c45075e4a078698bf')
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084742[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:41', NULL, 969084742, 'BorrowDirect', 'queued', '2015-02-24 16:17:41')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:41' WHERE `dispatched_services`.`id` = 4296
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084742 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085341)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085341)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084742) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084742)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (22.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084742 AND `dispatched_services`.`id` = 4296 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084742, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:42', 'This item is not currently available from BorrowDirect', 969084742, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4296[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084742 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085341 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085341)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084742 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084742 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085341
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084742
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 408ms (Views: 47.2ms | ActiveRecord: 143.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bb0f8fe841acb6c3a1d1229a44e95e30' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:42', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:42', 'format', 'journal', 969085342, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:42', 'isbn', 1, '9789810743734', 969085342, '9789810743734')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:42', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085342, 'bb0f8fe841acb6c3a1d1229a44e95e30')[0m
[1m[35m (20.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084743
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:42', NULL, 969084743, 'BorrowDirect', 'queued', '2015-02-24 16:17:42')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4297[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085342)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342)[0m
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084743) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084743)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`id` = 4297 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:42', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084743, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:42', 'Choose your delivery location', 969084743, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4297
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.6ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085342 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084743 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.3ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (11.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085342
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084743
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 368ms (Views: 51.5ms | ActiveRecord: 148.4ms)
Started GET "/borrow_direct/BorrowDirect/969084743?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:17:42 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084743"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084743 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4297
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (46.1ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:42', 969084743, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (21.3ms)[0m COMMIT
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085342 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084743&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 113ms (ActiveRecord: 94.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:42' WHERE `dispatched_services`.`id` = 4297[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016329
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084743&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:17:42 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084743", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:17:42-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085342 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084743
[1m[36m (25.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084743 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 [["request_id", 969084743]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085342 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085342)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.7ms)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084743 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084743 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085342[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084743[0m
[1m[35m (19.0ms)[0m COMMIT
Completed 200 OK in 123ms (Views: 43.4ms | ActiveRecord: 60.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'faca34fd0da0c0cf4b867762099a9a2e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:43', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:43', 'format', 'journal', 969085343, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:43', 'isbn', 1, '9789810743734', 969085343, '9789810743734')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085343, 'faca34fd0da0c0cf4b867762099a9a2e')
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084744[0m
[1m[35m (19.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:43', NULL, 969084744, 'BorrowDirect', 'queued', '2015-02-24 16:17:43')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:43' WHERE `dispatched_services`.`id` = 4298
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084744 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085343)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085343)
[1m[36mServiceResponse Load (2.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084744) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084744)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (20.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084744 AND `dispatched_services`.`id` = 4298 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084744, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:43', 'Choose your delivery location', 969084744, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:43' WHERE `dispatched_services`.`id` = 4298[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084744 LIMIT 1[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.7ms)
[1m[36mDispatchedService Load (2.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085343 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085343)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084744 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.3ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084744 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (11.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084744 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.6ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085343[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084744[0m
[1m[35m (22.3ms)[0m COMMIT
Completed 200 OK in 369ms (Views: 49.8ms | ActiveRecord: 147.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:17:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7394aa49df250c708e87e0d6a1791568' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:17:43', '9789810743734')[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:43', 'format', 'journal', 969085344, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:43', 'isbn', 1, '9789810743734', 969085344, '9789810743734')[0m
[1m[35m (25.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:17:43', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085344, '7394aa49df250c708e87e0d6a1791568')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084745[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:43', NULL, 969084745, 'BorrowDirect', 'queued', '2015-02-24 16:17:43')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:43' WHERE `dispatched_services`.`id` = 4299
[1m[36m (21.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085344)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084745) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084745)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`id` = 4299 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:17:43', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084745, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:43', 'Choose your delivery location', 969084745, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:17:43' WHERE `dispatched_services`.`id` = 4299[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085344 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084745 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.4ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (11.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085344[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084745[0m
[1m[35m (19.5ms)[0m COMMIT
Completed 200 OK in 372ms (Views: 49.2ms | ActiveRecord: 152.5ms)
Started GET "/borrow_direct/BorrowDirect/969084745" for 127.0.0.1 at 2015-02-24 11:17:43 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084745"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084745 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:17:43', 969084745, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085344 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084745&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 24.5ms)
Started GET "/resolve?umlaut.request_id=969084745&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A17%3A43-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:17:43 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084745", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:17:43-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085344 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084745
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 [["request_id", 969084745]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085344 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085344)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084745 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.3ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084745 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084745 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085344
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084745
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 122ms (Views: 52.4ms | ActiveRecord: 51.8ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '821411e770df65355a9064521c1be9be' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:17:57', 'foo')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:57', 'format', 'book', 969085345, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:57', 'genre', 1, 'book', 969085345, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:17:57', 'title', 1, 'foo', 969085345, 'foo')[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:17:58', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085345, '821411e770df65355a9064521c1be9be')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084746 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:17:58', NULL, 969084746, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:17:58')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:17:58' WHERE `dispatched_services`.`id` = 4300[0m
[1m[35m (18.9ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084746" for 127.0.0.1 at 2015-02-24 11:17:58 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084746"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084746 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085345 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085345)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084746[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084746[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084746 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084746[0m [["request_id", 969084746]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085345 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085345)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084746 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (12.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084746 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (63.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085345
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084746
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 245ms (Views: 134.2ms | ActiveRecord: 60.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7e6fa5830a659a4a6035d5f69da4423e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:18:18', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:18:18', 'format', 'book', 969085346, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:18:18', 'genre', 1, 'book', 969085346, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:18:18', 'title', 1, 'foo', 969085346, 'foo')[0m
[1m[35m (25.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:18:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085346, '7e6fa5830a659a4a6035d5f69da4423e')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084747 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:18:19', NULL, 969084747, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:18:19')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:18:19' WHERE `dispatched_services`.`id` = 4301[0m
[1m[35m (18.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084747" for 127.0.0.1 at 2015-02-24 11:18:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084747"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084747 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085346 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085346)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084747[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084747[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084747 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084747[0m [["request_id", 969084747]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085346 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085346)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084747 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (35.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mActiveRecord::SchemaMigration Load (1.2ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8716b1b2f7653826951d53759f3cd806' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:52', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:52', 'format', 'journal', 969085347, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:52', 'isbn', 1, '9789810743734', 969085347, '9789810743734')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085347, '8716b1b2f7653826951d53759f3cd806')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084748
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:52', NULL, 969084748, 'test_bd', 'queued', '2015-02-24 16:47:52')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:52' WHERE `dispatched_services`.`id` = 4302[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084748 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085347)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085347)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084748) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084748)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084748 AND `dispatched_services`.`id` = 4302 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084748, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4302[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084748 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085347 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085347)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084748 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084748 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/index.html.erb within layouts/umlaut (96.3ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085347[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084748[0m
[1m[35m (15.9ms)[0m COMMIT
Completed 200 OK in 689ms (Views: 159.4ms | ActiveRecord: 143.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:47:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fc039beda4db6edca1144d4b9e1e7699' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:47:53', 'some book')[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'format', 'book', 969085348, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'genre', 1, 'book', 969085348, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'author', 1, 'smith', 969085348, 'Smith')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'title', 1, 'some book', 969085348, 'Some Book')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:47:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085348, 'fc039beda4db6edca1144d4b9e1e7699')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084749[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:53', NULL, 969084749, 'BorrowDirect', 'queued', '2015-02-24 16:47:53')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4303
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084749 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085348)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085348)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084749) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084749)
[1m[36mDispatchedService Load (3.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084749 AND `dispatched_services`.`id` = 4303 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084749, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4303
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084749 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085348 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085348)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084749 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (2.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084749 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085348[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084749[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 246ms (Views: 22.3ms | ActiveRecord: 128.1ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:47:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2dc5de6d9005bfaca5bef679c996e8b4' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:47:53', 'foo')[0m
[1m[35mSQL (2.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'format', 'journal', 969085349, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'genre', 1, 'article', 969085349, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'title', 1, 'foo', 969085349, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'author', 1, 'bar', 969085349, 'bar')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:47:53', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085349, '2dc5de6d9005bfaca5bef679c996e8b4')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084750[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:53', NULL, 969084750, 'BorrowDirect', 'queued', '2015-02-24 16:47:53')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4304
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084750 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085349)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085349)
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084750) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084750)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084750 AND `dispatched_services`.`id` = 4304 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4304[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084750 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085349 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085349)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084750 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084750 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085349
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084750
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 207ms (Views: 17.2ms | ActiveRecord: 115.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80b963fb931144d5cdee7ea2f8cdc97f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:47:53', 'foo')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'format', 'book', 969085350, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'genre', 1, 'book', 969085350, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:53', 'title', 1, 'foo', 969085350, 'foo')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:47:53', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085350, '80b963fb931144d5cdee7ea2f8cdc97f')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084751 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:53', NULL, 969084751, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:47:53')
[1m[36m (22.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:53' WHERE `dispatched_services`.`id` = 4305[0m
[1m[35m (17.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084751" for 127.0.0.1 at 2015-02-24 11:47:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084751"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084751 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085350 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085350)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084751[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084751[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084751 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084751[0m [["request_id", 969084751]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085350 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085350)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084751 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084751 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085350
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084751
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 74ms (Views: 18.5ms | ActiveRecord: 46.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '818bdd8aac50c475394c3e34c9efa461' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:54', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'format', 'journal', 969085351, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'isbn', 1, '9789810743734', 969085351, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085351, '818bdd8aac50c475394c3e34c9efa461')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084752
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:54', NULL, 969084752, 'BorrowDirect', 'queued', '2015-02-24 16:47:54')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4306[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085351)
[1m[36mReferentValue Load (1.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351)[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084752) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084752)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`id` = 4306 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084752, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:54', 'Choose your delivery location', 969084752, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4306
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085351 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084752 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085351
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084752
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 265ms (Views: 25.1ms | ActiveRecord: 121.8ms)
Started GET "/borrow_direct/BorrowDirect/969084752?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:47:54 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084752"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084752 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4306
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:54', 969084752, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085351 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084752&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A54-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 54ms (ActiveRecord: 39.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4306[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016339
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084752&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A54-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:47:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084752", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:47:54-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085351 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084752
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084752 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 [["request_id", 969084752]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085351 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085351)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084752 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084752 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085351[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084752[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 77ms (Views: 21.6ms | ActiveRecord: 45.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:47:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09df911dc3f55e2b17f4fcefa4e539aa' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:54', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'format', 'journal', 969085352, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'isbn', 1, '0109836413', 969085352, '0109836413')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:47:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085352, '09df911dc3f55e2b17f4fcefa4e539aa')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084753[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:54', NULL, 969084753, 'BorrowDirect', 'queued', '2015-02-24 16:47:54')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4307
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084753 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085352)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085352)
[1m[36mServiceResponse Load (2.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084753) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084753)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084753 AND `dispatched_services`.`id` = 4307 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:54', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084753, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:54', 'This item is not currently available from BorrowDirect', 969084753, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4307[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084753 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085352 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085352)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084753 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084753 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085352
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084753
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 289ms (Views: 21.0ms | ActiveRecord: 114.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '545359c4f8120104aa03d3d8af64a2f6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:54', '9789810743734')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'format', 'journal', 969085353, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:54', 'isbn', 1, '9789810743734', 969085353, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:54', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085353, '545359c4f8120104aa03d3d8af64a2f6')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084754
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:54', NULL, 969084754, 'BorrowDirect', 'queued', '2015-02-24 16:47:54')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:54' WHERE `dispatched_services`.`id` = 4308[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085353)
[1m[36mReferentValue Load (2.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084754) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084754)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`id` = 4308 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084754, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 'Choose your delivery location', 969084754, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4308
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085353 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084754 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085353
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084754
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 264ms (Views: 22.6ms | ActiveRecord: 120.1ms)
Started GET "/borrow_direct/BorrowDirect/969084754?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:47:55 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084754"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084754 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4308
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 969084754, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085353 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084754&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 37.7ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4308[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016344
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084754&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:47:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084754", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:47:55-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085353 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353)
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084754
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084754 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 [["request_id", 969084754]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085353 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085353)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084754 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084754 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085353[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084754[0m
[1m[35m (18.5ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 18.8ms | ActiveRecord: 49.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17f53845fd614b036ac9ff30a2dda430' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:55', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:55', 'format', 'journal', 969085354, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:55', 'isbn', 1, '9789810743734', 969085354, '9789810743734')[0m
[1m[35m (20.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085354, '17f53845fd614b036ac9ff30a2dda430')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084755[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:55', NULL, 969084755, 'BorrowDirect', 'queued', '2015-02-24 16:47:55')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4309
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084755 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085354)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085354)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084755) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084755)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084755 AND `dispatched_services`.`id` = 4309 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084755, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 'Choose your delivery location', 969084755, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4309[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084755 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085354 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085354)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084755 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084755 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084755 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085354[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084755[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 310ms (Views: 22.2ms | ActiveRecord: 126.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:47:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2f3f99223c470f8e74c7b2005037eb8f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:47:55', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:55', 'format', 'journal', 969085355, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:47:55', 'isbn', 1, '9789810743734', 969085355, '9789810743734')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:47:55', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085355, '2f3f99223c470f8e74c7b2005037eb8f')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084756[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:47:55', NULL, 969084756, 'BorrowDirect', 'queued', '2015-02-24 16:47:55')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4310
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085355)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355)
[1m[36mServiceResponse Load (2.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084756) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084756)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`id` = 4310 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:47:55', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084756, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 'Choose your delivery location', 969084756, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:47:55' WHERE `dispatched_services`.`id` = 4310[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085355 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084756 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085355[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084756[0m
[1m[35m (17.7ms)[0m COMMIT
Completed 200 OK in 279ms (Views: 22.5ms | ActiveRecord: 128.2ms)
Started GET "/borrow_direct/BorrowDirect/969084756" for 127.0.0.1 at 2015-02-24 11:47:55 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084756"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084756 ORDER BY id ASC
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.6ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:47:55', 969084756, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085355 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084756&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 26.0ms)
Started GET "/resolve?umlaut.request_id=969084756&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A47%3A55-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:47:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084756", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:47:55-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085355 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084756
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 [["request_id", 969084756]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085355 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085355)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084756 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084756 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084756 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085355
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-f58324bca409/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084756
[1m[36m (21.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 86ms (Views: 23.3ms | ActiveRecord: 53.9ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3b5679cb967ab21d309f5c48b4a8d42c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:48', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:48', 'format', 'journal', 969085356, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:48', 'isbn', 1, '9789810743734', 969085356, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085356, '3b5679cb967ab21d309f5c48b4a8d42c')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084757
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:48', NULL, 969084757, 'test_bd', 'queued', '2015-02-24 16:51:48')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:48' WHERE `dispatched_services`.`id` = 4311[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084757 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085356)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085356)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084757) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084757)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084757 AND `dispatched_services`.`id` = 4311 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084757, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:51:48' WHERE `dispatched_services`.`id` = 4311[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084757 LIMIT 1[0m
[1m[35mDispatchedService Load (8.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085356 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085356)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084757 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (36.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (40.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084757 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (103.0ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085356
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.9ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084757
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 2413ms (Views: 1916.3ms | ActiveRecord: 141.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:51:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7f2af80eb94f9cb404203ab55240d434' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:51:50', 'some book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'format', 'book', 969085357, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'genre', 1, 'book', 969085357, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'author', 1, 'smith', 969085357, 'Smith')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'title', 1, 'some book', 969085357, 'Some Book')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:51:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085357, '7f2af80eb94f9cb404203ab55240d434')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084758
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:50', NULL, 969084758, 'BorrowDirect', 'queued', '2015-02-24 16:51:50')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:50' WHERE `dispatched_services`.`id` = 4312[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084758 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085357)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085357)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084758) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084758)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084758 AND `dispatched_services`.`id` = 4312 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084758, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:50' WHERE `dispatched_services`.`id` = 4312[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084758 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085357 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085357)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084758 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084758 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085357
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084758
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 238ms (Views: 20.3ms | ActiveRecord: 125.1ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:51:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf01dbb246733f59b3d32a1f807a1bb9' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:51:50', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'format', 'journal', 969085358, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'genre', 1, 'article', 969085358, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'title', 1, 'foo', 969085358, 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:50', 'author', 1, 'bar', 969085358, 'bar')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:51:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085358, 'bf01dbb246733f59b3d32a1f807a1bb9')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084759
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:51', NULL, 969084759, 'BorrowDirect', 'queued', '2015-02-24 16:51:51')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4313[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084759 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085358)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085358)[0m
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084759) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084759)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084759 AND `dispatched_services`.`id` = 4313 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4313
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084759 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085358 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085358)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084759 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084759 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085358[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084759[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 206ms (Views: 19.1ms | ActiveRecord: 115.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '71d426a1da8360572ebe786898d7d49f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:51:51', 'foo')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'format', 'book', 969085359, 'book')
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'genre', 1, 'book', 969085359, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'title', 1, 'foo', 969085359, 'foo')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:51:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085359, '71d426a1da8360572ebe786898d7d49f')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084760 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:51', NULL, 969084760, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:51:51')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4314
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084760" for 127.0.0.1 at 2015-02-24 11:51:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084760"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084760 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085359 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085359)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084760
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084760
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084760 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084760 [["request_id", 969084760]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085359 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085359)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084760 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084760 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085359[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084760[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 71ms (Views: 17.5ms | ActiveRecord: 46.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2856a3a411c670f3baad648978179149' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:51', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'format', 'journal', 969085360, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'isbn', 1, '9789810743734', 969085360, '9789810743734')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085360, '2856a3a411c670f3baad648978179149')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084761[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:51', NULL, 969084761, 'BorrowDirect', 'queued', '2015-02-24 16:51:51')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4315
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085360)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084761) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084761)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`id` = 4315 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084761, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:51', 'Choose your delivery location', 969084761, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4315[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085360 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084761 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085360[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084761[0m
[1m[35m (15.2ms)[0m COMMIT
Completed 200 OK in 252ms (Views: 24.0ms | ActiveRecord: 114.8ms)
Started GET "/borrow_direct/BorrowDirect/969084761?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:51:51 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084761"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084761 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4315[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:51', 969084761, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085360 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084761&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 38.4ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4315
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016354[0m
[1m[35m (15.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084761&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:51:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084761", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:51:51-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085360 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360)[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084761[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084761 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761[0m [["request_id", 969084761]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085360 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085360)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084761 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084761 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085360
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084761
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 81ms (Views: 21.1ms | ActiveRecord: 50.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:51:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e12724360722278b71f1c52de0f683ec' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:51', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'format', 'journal', 969085361, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:51', 'isbn', 1, '0109836413', 969085361, '0109836413')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:51:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085361, 'e12724360722278b71f1c52de0f683ec')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084762
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:51', NULL, 969084762, 'BorrowDirect', 'queued', '2015-02-24 16:51:51')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:51' WHERE `dispatched_services`.`id` = 4316[0m
[1m[35m (22.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084762 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085361)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085361)[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084762) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084762)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084762 AND `dispatched_services`.`id` = 4316 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084762, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:52', 'This item is not currently available from BorrowDirect', 969084762, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4316
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084762 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085361 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085361)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084762 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084762 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085361[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084762[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 256ms (Views: 19.1ms | ActiveRecord: 124.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9e40560a24e6932d24d6eb8ef69a2e63' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:52', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'format', 'journal', 969085362, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'isbn', 1, '9789810743734', 969085362, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085362, '9e40560a24e6932d24d6eb8ef69a2e63')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084763[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:52', NULL, 969084763, 'BorrowDirect', 'queued', '2015-02-24 16:51:52')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4317
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085362)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084763) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084763)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`id` = 4317 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084763, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:52', 'Choose your delivery location', 969084763, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4317[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085362 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084763 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085362
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084763
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 309ms (Views: 22.1ms | ActiveRecord: 121.7ms)
Started GET "/borrow_direct/BorrowDirect/969084763?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:51:52 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084763"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084763 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4317
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:52', 969084763, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085362 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084763&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.5ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4317[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016359
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084763&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:51:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084763", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:51:52-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085362 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084763
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084763 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 [["request_id", 969084763]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085362 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085362)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084763 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084763 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085362[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084763[0m
[1m[35m (19.2ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 18.0ms | ActiveRecord: 49.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc3642138ca789387d2412b9f4969c34' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:52', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'format', 'journal', 969085363, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'isbn', 1, '9789810743734', 969085363, '9789810743734')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085363, 'dc3642138ca789387d2412b9f4969c34')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084764[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:52', NULL, 969084764, 'BorrowDirect', 'queued', '2015-02-24 16:51:52')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4318
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084764 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085363)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085363)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084764) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084764)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084764 AND `dispatched_services`.`id` = 4318 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084764, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (17.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:52', 'Choose your delivery location', 969084764, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:52' WHERE `dispatched_services`.`id` = 4318[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084764 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085363 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085363)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084764 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084764 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084764 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085363[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084764[0m
[1m[35m (15.5ms)[0m COMMIT
Completed 200 OK in 264ms (Views: 22.7ms | ActiveRecord: 119.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:51:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b966de39632e11bbe5fd52f22fe2ee3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:51:52', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'format', 'journal', 969085364, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:51:52', 'isbn', 1, '9789810743734', 969085364, '9789810743734')[0m
[1m[35m (19.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:51:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085364, '7b966de39632e11bbe5fd52f22fe2ee3')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084765[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:51:52', NULL, 969084765, 'BorrowDirect', 'queued', '2015-02-24 16:51:52')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:51:53' WHERE `dispatched_services`.`id` = 4319
[1m[36m (19.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085364)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084765) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084765)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`id` = 4319 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:51:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084765, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:53', 'Choose your delivery location', 969084765, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:51:53' WHERE `dispatched_services`.`id` = 4319[0m
[1m[35m (59.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085364 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084765 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085364[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (17.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084765[0m
[1m[35m (32.1ms)[0m COMMIT
Completed 200 OK in 388ms (Views: 22.4ms | ActiveRecord: 159.4ms)
Started GET "/borrow_direct/BorrowDirect/969084765" for 127.0.0.1 at 2015-02-24 11:51:53 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084765"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084765 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:51:53', 969084765, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (51.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085364 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084765&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 63ms (ActiveRecord: 56.4ms)
Started GET "/resolve?umlaut.request_id=969084765&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A51%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:51:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084765", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:51:53-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085364 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084765
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 [["request_id", 969084765]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085364 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085364)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084765 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084765 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084765 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085364
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084765
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 87ms (Views: 23.4ms | ActiveRecord: 54.4ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:52:20 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a709262efc3923f0a2f3ae0f1709cabb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:52:21', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:52:21', 'format', 'journal', 969085365, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:52:21', 'isbn', 1, '9789810743734', 969085365, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:52:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085365, 'a709262efc3923f0a2f3ae0f1709cabb')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084766
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:52:21', NULL, 969084766, 'test_bd', 'queued', '2015-02-24 16:52:21')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:52:21' WHERE `dispatched_services`.`id` = 4320[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084766 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085365)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085365)[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084766) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084766)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (23.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084766 AND `dispatched_services`.`id` = 4320 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:52:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084766, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:52:21' WHERE `dispatched_services`.`id` = 4320[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084766 LIMIT 1[0m
[1m[35mDispatchedService Load (7.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085365 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085365)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (34.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084766 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (40.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084766 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (98.9ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085365
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084766
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 643ms (Views: 111.3ms | ActiveRecord: 171.4ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '49dd039c9cb395cc789dada4055d50a1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:47', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'format', 'journal', 969085366, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'isbn', 1, '9789810743734', 969085366, '9789810743734')
[1m[36m (22.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085366, '49dd039c9cb395cc789dada4055d50a1')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084767
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:47', NULL, 969084767, 'test_bd', 'queued', '2015-02-24 16:53:47')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:47' WHERE `dispatched_services`.`id` = 4321[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084767 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085366)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085366)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084767) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084767)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084767 AND `dispatched_services`.`id` = 4321 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084767, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:53:47' WHERE `dispatched_services`.`id` = 4321[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084767 LIMIT 1[0m
[1m[35mDispatchedService Load (7.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085366 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085366)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084767 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084767 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (95.9ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085366[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084767[0m
[1m[35m (15.6ms)[0m COMMIT
Completed 200 OK in 666ms (Views: 136.9ms | ActiveRecord: 173.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:53:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6e89116be031a323c13b9ab62458ff5c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:53:47', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'format', 'book', 969085367, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'genre', 1, 'book', 969085367, 'book')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'author', 1, 'smith', 969085367, 'Smith')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:47', 'title', 1, 'some book', 969085367, 'Some Book')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:53:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085367, '6e89116be031a323c13b9ab62458ff5c')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084768[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:47', NULL, 969084768, 'BorrowDirect', 'queued', '2015-02-24 16:53:47')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:47' WHERE `dispatched_services`.`id` = 4322
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084768 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085367)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085367)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084768) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084768)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084768 AND `dispatched_services`.`id` = 4322 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084768, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:47' WHERE `dispatched_services`.`id` = 4322
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084768 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085367 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085367)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084768 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084768 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085367[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084768[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 240ms (Views: 18.9ms | ActiveRecord: 125.8ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:53:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9b6f41bf7a5f7b1cd82b3691041ec4e8' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:53:48', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'format', 'journal', 969085368, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'genre', 1, 'article', 969085368, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'title', 1, 'foo', 969085368, 'foo')
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'author', 1, 'bar', 969085368, 'bar')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:53:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085368, '9b6f41bf7a5f7b1cd82b3691041ec4e8')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084769[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:48', NULL, 969084769, 'BorrowDirect', 'queued', '2015-02-24 16:53:48')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4323
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084769 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085368)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085368)
[1m[36mServiceResponse Load (3.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084769) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084769)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084769 AND `dispatched_services`.`id` = 4323 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4323[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084769 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085368 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085368)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084769 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084769 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085368
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084769
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 208ms (Views: 17.2ms | ActiveRecord: 117.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '839c3b0cf81c563d5f3995cd6a614014' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:53:48', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'format', 'book', 969085369, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'genre', 1, 'book', 969085369, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'title', 1, 'foo', 969085369, 'foo')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:53:48', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085369, '839c3b0cf81c563d5f3995cd6a614014')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084770 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:48', NULL, 969084770, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:53:48')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4324[0m
[1m[35m (14.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084770" for 127.0.0.1 at 2015-02-24 11:53:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084770"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084770 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085369 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085369)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084770[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084770[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084770 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084770[0m [["request_id", 969084770]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085369 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085369)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084770 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084770 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085369
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084770
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 70ms (Views: 18.4ms | ActiveRecord: 44.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '221b9589a27a54cb0d670e3c51e66da5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:48', '9789810743734')
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'format', 'journal', 969085370, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'isbn', 1, '9789810743734', 969085370, '9789810743734')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085370, '221b9589a27a54cb0d670e3c51e66da5')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084771
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:48', NULL, 969084771, 'BorrowDirect', 'queued', '2015-02-24 16:53:48')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4325[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085370)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084771) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084771)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`id` = 4325 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084771, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:48', 'Choose your delivery location', 969084771, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4325
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085370 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084771 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085370
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084771
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 253ms (Views: 24.5ms | ActiveRecord: 114.5ms)
Started GET "/borrow_direct/BorrowDirect/969084771?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:53:48 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084771"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084771 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4325
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:48', 969084771, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085370 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084771&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 37.7ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:53:48' WHERE `dispatched_services`.`id` = 4325[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016370
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084771&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:53:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084771", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:53:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085370 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084771
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084771 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 [["request_id", 969084771]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085370 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085370)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084771 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084771 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085370[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084771[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 21.5ms | ActiveRecord: 45.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:53:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7a1ab5d978fc512e4a00b0f816f25b72' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:48', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'format', 'journal', 969085371, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:48', 'isbn', 1, '0109836413', 969085371, '0109836413')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.8ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:53:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085371, '7a1ab5d978fc512e4a00b0f816f25b72')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084772[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:49', NULL, 969084772, 'BorrowDirect', 'queued', '2015-02-24 16:53:49')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4326
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084772 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085371)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085371)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084772) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084772)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084772 AND `dispatched_services`.`id` = 4326 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084772, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (13.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:49', 'This item is not currently available from BorrowDirect', 969084772, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4326[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084772 LIMIT 1[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085371 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085371)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084772 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084772 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085371
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084772
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 294ms (Views: 20.9ms | ActiveRecord: 120.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e19e2bfcdbbac0ed3bbdb7bb302b4730' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:49', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:49', 'format', 'journal', 969085372, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:49', 'isbn', 1, '9789810743734', 969085372, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085372, 'e19e2bfcdbbac0ed3bbdb7bb302b4730')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084773
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:49', NULL, 969084773, 'BorrowDirect', 'queued', '2015-02-24 16:53:49')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4327[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085372)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372)[0m
[1m[35mServiceResponse Load (2.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084773) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084773)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`id` = 4327 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084773, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:49', 'Choose your delivery location', 969084773, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4327
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773
[1m[36mReferent Load (2.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085372 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084773 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085372
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084773
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 252ms (Views: 21.9ms | ActiveRecord: 115.5ms)
Started GET "/borrow_direct/BorrowDirect/969084773?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:53:49 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084773"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084773 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4327
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:49', 969084773, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085372 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084773&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 46ms (ActiveRecord: 37.6ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4327[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016375
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084773&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:53:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084773", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:53:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085372 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084773
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084773 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 [["request_id", 969084773]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085372 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085372)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084773 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084773 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085372[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084773[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 20.0ms | ActiveRecord: 44.4ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f6fc5c3dbe240edcc2378179f19c3087' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:49', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:49', 'format', 'journal', 969085373, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:49', 'isbn', 1, '9789810743734', 969085373, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:49', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085373, 'f6fc5c3dbe240edcc2378179f19c3087')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084774[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:49', NULL, 969084774, 'BorrowDirect', 'queued', '2015-02-24 16:53:49')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4328
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084774 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085373)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085373)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084774) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084774)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084774 AND `dispatched_services`.`id` = 4328 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:49', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084774, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:49', 'Choose your delivery location', 969084774, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:49' WHERE `dispatched_services`.`id` = 4328[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084774 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085373 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085373)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084774 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084774 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084774 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085373[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084774[0m
[1m[35m (15.2ms)[0m COMMIT
Completed 200 OK in 296ms (Views: 22.4ms | ActiveRecord: 116.5ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:53:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8ac41730b8d2b6f0bed5d5a6fe57a363' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:53:50', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:50', 'format', 'journal', 969085374, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:53:50', 'isbn', 1, '9789810743734', 969085374, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:53:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085374, '8ac41730b8d2b6f0bed5d5a6fe57a363')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084775[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:53:50', NULL, 969084775, 'BorrowDirect', 'queued', '2015-02-24 16:53:50')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:53:50' WHERE `dispatched_services`.`id` = 4329
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085374)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084775) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084775)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`id` = 4329 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:53:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084775, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:50', 'Choose your delivery location', 969084775, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:53:50' WHERE `dispatched_services`.`id` = 4329[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085374 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084775 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085374[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084775[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 251ms (Views: 21.7ms | ActiveRecord: 115.2ms)
Started GET "/borrow_direct/BorrowDirect/969084775" for 127.0.0.1 at 2015-02-24 11:53:50 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084775"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084775 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:53:50', 969084775, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085374 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084775&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.5ms)
Started GET "/resolve?umlaut.request_id=969084775&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A53%3A50-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:53:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084775", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:53:50-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085374 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084775
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 [["request_id", 969084775]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085374 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085374)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084775 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084775 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084775 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085374
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084775
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 78ms (Views: 21.9ms | ActiveRecord: 47.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:54:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c7d2780e3589daf18fec762497671cbf' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:54:24', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:54:24', 'format', 'journal', 969085375, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:54:24', 'isbn', 1, '9789810743734', 969085375, '9789810743734')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:54:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085375, 'c7d2780e3589daf18fec762497671cbf')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084776
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:54:24', NULL, 969084776, 'test_bd', 'queued', '2015-02-24 16:54:24')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:54:24' WHERE `dispatched_services`.`id` = 4330[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084776 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085375)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085375)[0m
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084776) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084776)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084776 AND `dispatched_services`.`id` = 4330 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:54:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084776, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:54:24' WHERE `dispatched_services`.`id` = 4330[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084776 LIMIT 1[0m
[1m[35mDispatchedService Load (2.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085375 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085375)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084776 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (32.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (36.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084776 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (122.5ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085375[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084776[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 668ms (Views: 142.7ms | ActiveRecord: 161.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:55:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d2a685207a6cc7a16916290120f997f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:55:22', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'format', 'book', 969085376, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'genre', 1, 'book', 969085376, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'author', 1, 'smith', 969085376, 'Smith')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'title', 1, 'some book', 969085376, 'Some Book')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:55:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085376, '8d2a685207a6cc7a16916290120f997f')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084777[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:22', NULL, 969084777, 'BorrowDirect', 'queued', '2015-02-24 16:55:22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:22' WHERE `dispatched_services`.`id` = 4331
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084777 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085376)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085376)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084777) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084777)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084777 AND `dispatched_services`.`id` = 4331 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084777, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:22' WHERE `dispatched_services`.`id` = 4331
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084777 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.7ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085376 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085376)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (10.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.6ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084777 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084777 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085376[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084777[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 302ms (Views: 47.7ms | ActiveRecord: 128.2ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:55:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b656583e9cfda0429f10bb1ca1bea124' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:55:22', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'format', 'journal', 969085377, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'genre', 1, 'article', 969085377, 'article')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'title', 1, 'foo', 969085377, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:22', 'author', 1, 'bar', 969085377, 'bar')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:55:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085377, 'b656583e9cfda0429f10bb1ca1bea124')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084778[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:22', NULL, 969084778, 'BorrowDirect', 'queued', '2015-02-24 16:55:22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:22' WHERE `dispatched_services`.`id` = 4332
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084778 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085377)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085377)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084778) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084778)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084778 AND `dispatched_services`.`id` = 4332 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:22' WHERE `dispatched_services`.`id` = 4332[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084778 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085377 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085377)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (47.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.4ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084778 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084778 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085377
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084778
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 298ms (Views: 80.9ms | ActiveRecord: 116.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c2fef29bcec5aec85b3da32444d644c0' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:55:23', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'format', 'book', 969085378, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'genre', 1, 'book', 969085378, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'title', 1, 'foo', 969085378, 'foo')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:55:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085378, 'c2fef29bcec5aec85b3da32444d644c0')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084779 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:23', NULL, 969084779, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:55:23')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4333[0m
[1m[35m (14.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084779" for 127.0.0.1 at 2015-02-24 11:55:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084779"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084779 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085378 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085378)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084779[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084779[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084779 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084779[0m [["request_id", 969084779]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085378 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085378)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.4ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084779 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084779 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.4ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085378
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084779
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 105ms (Views: 43.4ms | ActiveRecord: 47.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b8f14390562b212e5614f56b2751089a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:23', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'format', 'journal', 969085379, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:23', 'isbn', 1, '9789810743734', 969085379, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085379, 'b8f14390562b212e5614f56b2751089a')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084780
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:23', NULL, 969084780, 'BorrowDirect', 'queued', '2015-02-24 16:55:23')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4334[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085379)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379)[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084780) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084780)[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`id` = 4334 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084780, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:23', 'Choose your delivery location', 969084780, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4334
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085379 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084780 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (48.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (49.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (14.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (16.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085379
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084780
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 371ms (Views: 101.8ms | ActiveRecord: 116.1ms)
Started GET "/borrow_direct/BorrowDirect/969084780?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:55:23 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084780"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084780 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4334
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:23', 969084780, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085379 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084780&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 68ms (ActiveRecord: 37.6ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:55:23' WHERE `dispatched_services`.`id` = 4334[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016385
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084780&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A23-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:55:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084780", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:55:23-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085379 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084780
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084780 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 [["request_id", 969084780]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085379 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085379)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.7ms)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084780 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084780 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085379[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084780[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 115ms (Views: 50.5ms | ActiveRecord: 46.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:55:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07a2bc222d3f1dd4d1fa7c5006face4b' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:24', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:24', 'format', 'journal', 969085380, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:24', 'isbn', 1, '0109836413', 969085380, '0109836413')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:55:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085380, '07a2bc222d3f1dd4d1fa7c5006face4b')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084781[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:24', NULL, 969084781, 'BorrowDirect', 'queued', '2015-02-24 16:55:24')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4335
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084781 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085380)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085380)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084781) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084781)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084781 AND `dispatched_services`.`id` = 4335 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084781, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:24', 'This item is not currently available from BorrowDirect', 969084781, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4335[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084781 LIMIT 1[0m
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (4.3ms)
[1m[36mDispatchedService Load (2.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085380 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085380)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084781 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084781 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085380
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084781
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 364ms (Views: 49.6ms | ActiveRecord: 115.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1e7167a85af449b7af0206e49e96008f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:24', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:24', 'format', 'journal', 969085381, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:24', 'isbn', 1, '9789810743734', 969085381, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085381, '1e7167a85af449b7af0206e49e96008f')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084782
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:24', NULL, 969084782, 'BorrowDirect', 'queued', '2015-02-24 16:55:24')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4336[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085381)
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381)[0m
[1m[35mServiceResponse Load (3.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084782) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084782)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`id` = 4336 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084782, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:24', 'Choose your delivery location', 969084782, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4336
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[35mDispatchedService Load (2.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085381 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084782 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085381
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084782
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 325ms (Views: 52.8ms | ActiveRecord: 117.8ms)
Started GET "/borrow_direct/BorrowDirect/969084782?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:55:24 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084782"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084782 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4336
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:24', 969084782, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085381 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084782&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 61ms (ActiveRecord: 42.5ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:24' WHERE `dispatched_services`.`id` = 4336[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016390
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084782&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:55:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084782", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:55:24-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085381 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084782
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084782 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 [["request_id", 969084782]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085381 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085381)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084782 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084782 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085381[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084782[0m
[1m[35m (14.1ms)[0m COMMIT
Completed 200 OK in 110ms (Views: 43.7ms | ActiveRecord: 47.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c8e03f58c527348dcb4980ab16a43aa' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:25', '9789810743734')[0m
[1m[35mSQL (2.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:25', 'format', 'journal', 969085382, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:25', 'isbn', 1, '9789810743734', 969085382, '9789810743734')[0m
[1m[35m (19.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085382, '1c8e03f58c527348dcb4980ab16a43aa')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084783[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:25', NULL, 969084783, 'BorrowDirect', 'queued', '2015-02-24 16:55:25')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:25' WHERE `dispatched_services`.`id` = 4337
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084783 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085382)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085382)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084783) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084783)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084783 AND `dispatched_services`.`id` = 4337 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084783, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:25', 'Choose your delivery location', 969084783, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:25' WHERE `dispatched_services`.`id` = 4337[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084783 LIMIT 1[0m
[1m[35mDispatchedService Load (2.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (4.0ms)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085382 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085382)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084783 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084783 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (12.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084783 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085382[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.6ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084783[0m
[1m[35m (15.9ms)[0m COMMIT
Completed 200 OK in 333ms (Views: 52.4ms | ActiveRecord: 126.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dc1182c035aa6c035e406150a88355ac' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:25', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:25', 'format', 'journal', 969085383, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:25', 'isbn', 1, '9789810743734', 969085383, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085383, 'dc1182c035aa6c035e406150a88355ac')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084784[0m
[1m[35m (18.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:25', NULL, 969084784, 'BorrowDirect', 'queued', '2015-02-24 16:55:25')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:25' WHERE `dispatched_services`.`id` = 4338
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085383)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383)
[1m[36mServiceResponse Load (3.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084784) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084784)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`id` = 4338 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084784, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:25', 'Choose your delivery location', 969084784, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:55:25' WHERE `dispatched_services`.`id` = 4338[0m
[1m[35m (19.2ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.7ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085383 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084784 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.4ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085383[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084784[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 390ms (Views: 53.0ms | ActiveRecord: 123.5ms)
Started GET "/borrow_direct/BorrowDirect/969084784" for 127.0.0.1 at 2015-02-24 11:55:25 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084784"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084784 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:55:25', 969084784, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085383 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084784&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 34ms (ActiveRecord: 20.3ms)
Started GET "/resolve?umlaut.request_id=969084784&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A55%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:55:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084784", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:55:25-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085383 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084784
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 [["request_id", 969084784]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085383 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085383)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084784 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.3ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084784 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084784 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085383
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084784
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 123ms (Views: 52.6ms | ActiveRecord: 52.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:55:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '08e2e0f14c04d1ce364b16963ab9da72' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:55:50', '9789810743734')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:50', 'format', 'journal', 969085384, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:55:50', 'isbn', 1, '9789810743734', 969085384, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:55:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085384, '08e2e0f14c04d1ce364b16963ab9da72')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084785
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:55:50', NULL, 969084785, 'test_bd', 'queued', '2015-02-24 16:55:50')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:55:50' WHERE `dispatched_services`.`id` = 4339[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084785 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085384)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085384)[0m
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084785) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084785)[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (20.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084785 AND `dispatched_services`.`id` = 4339 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:55:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084785, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:55:51' WHERE `dispatched_services`.`id` = 4339[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084785 LIMIT 1[0m
[1m[35mDispatchedService Load (7.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.8ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085384 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085384)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084785 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (31.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (2.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084785 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (101.3ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085384
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084785
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 659ms (Views: 140.6ms | ActiveRecord: 148.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b58ab1cedaf39a1984ea046576ea0f27' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:31', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'format', 'journal', 969085385, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'isbn', 1, '9789810743734', 969085385, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085385, 'b58ab1cedaf39a1984ea046576ea0f27')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084786
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:31', NULL, 969084786, 'test_bd', 'queued', '2015-02-24 16:59:31')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4340[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084786 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085385)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085385)[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084786) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084786)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084786 AND `dispatched_services`.`id` = 4340 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084786, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4340[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084786 LIMIT 1[0m
[1m[35mDispatchedService Load (7.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085385 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085385)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084786 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084786 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (100.0ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085385
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084786
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 636ms (Views: 141.1ms | ActiveRecord: 140.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 11:59:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2ebb73b6b32c34be25a1852048b8be6f' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:59:31', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'format', 'book', 969085386, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'genre', 1, 'book', 969085386, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'author', 1, 'smith', 969085386, 'Smith')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'title', 1, 'some book', 969085386, 'Some Book')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 16:59:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085386, '2ebb73b6b32c34be25a1852048b8be6f')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084787
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:31', NULL, 969084787, 'BorrowDirect', 'queued', '2015-02-24 16:59:31')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4341[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084787 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085386)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085386)[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084787) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084787)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084787 AND `dispatched_services`.`id` = 4341 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:31', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084787, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4341[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084787 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085386 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085386)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084787 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084787 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085386
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084787
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 20.7ms | ActiveRecord: 130.7ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 11:59:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'af7d09ccbcd1d77cd6f664cc5798ea69' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:59:31', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'format', 'journal', 969085387, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'genre', 1, 'article', 969085387, 'article')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'title', 1, 'foo', 969085387, 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:31', 'author', 1, 'bar', 969085387, 'bar')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 16:59:31', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085387, 'af7d09ccbcd1d77cd6f664cc5798ea69')[0m
[1m[35m (13.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084788
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:31', NULL, 969084788, 'BorrowDirect', 'queued', '2015-02-24 16:59:31')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:31' WHERE `dispatched_services`.`id` = 4342[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084788 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085387)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085387)[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084788) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084788)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084788 AND `dispatched_services`.`id` = 4342 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4342
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084788 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085387 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085387)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084788 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084788 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085387[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084788[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 214ms (Views: 18.7ms | ActiveRecord: 121.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '691af0070fa8efd8e25b7e521219256d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 16:59:32', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'format', 'book', 969085388, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'genre', 1, 'book', 969085388, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'title', 1, 'foo', 969085388, 'foo')
[1m[36m (34.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 16:59:32', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085388, '691af0070fa8efd8e25b7e521219256d')[0m
[1m[35m (46.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084789 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:32', NULL, 969084789, 'BorrowDirect', 'failed_fatal', '2015-02-24 16:59:32')[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4343
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084789" for 127.0.0.1 at 2015-02-24 11:59:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084789"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084789 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085388 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085388)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084789
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084789
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084789 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084789 [["request_id", 969084789]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085388 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085388)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084789 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084789 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085388[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084789[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 19.2ms | ActiveRecord: 45.6ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '546d32fcdce8871ca53c65048d3709ee' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:32', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'format', 'journal', 969085389, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'isbn', 1, '9789810743734', 969085389, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085389, '546d32fcdce8871ca53c65048d3709ee')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084790[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:32', NULL, 969084790, 'BorrowDirect', 'queued', '2015-02-24 16:59:32')[0m
[1m[35m (32.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4344
[1m[36m (20.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085389)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084790) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084790)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`id` = 4344 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:32', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084790, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:32', 'Choose your delivery location', 969084790, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4344[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085389 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084790 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085389[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084790[0m
[1m[35m (16.4ms)[0m COMMIT
Completed 200 OK in 288ms (Views: 24.0ms | ActiveRecord: 145.6ms)
Started GET "/borrow_direct/BorrowDirect/969084790?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:59:32 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084790"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084790 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4344[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:32', 969084790, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085389 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084790&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 37.8ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4344
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016401[0m
[1m[35m (14.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084790&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:59:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084790", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:59:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085389 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084790[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084790 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790[0m [["request_id", 969084790]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085389 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085389)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084790 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084790 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085389
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084790
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 76ms (Views: 20.4ms | ActiveRecord: 46.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 11:59:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '63c1b62b573d6d96cc6b8dda4c755203' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:32', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'format', 'journal', 969085390, 'journal')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:32', 'isbn', 1, '0109836413', 969085390, '0109836413')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 16:59:32', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085390, '63c1b62b573d6d96cc6b8dda4c755203')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084791
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:32', NULL, 969084791, 'BorrowDirect', 'queued', '2015-02-24 16:59:32')
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:32' WHERE `dispatched_services`.`id` = 4345[0m
[1m[35m (17.1ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084791 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085390)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085390)[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084791) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084791)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084791 AND `dispatched_services`.`id` = 4345 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084791, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:33', 'This item is not currently available from BorrowDirect', 969084791, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4345
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084791 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085390 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085390)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084791 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084791 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085390[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084791[0m
[1m[35m (15.7ms)[0m COMMIT
Completed 200 OK in 308ms (Views: 22.4ms | ActiveRecord: 129.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '02fc739faed8e464540b7e377ea91fbc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:33', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'format', 'journal', 969085391, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'isbn', 1, '9789810743734', 969085391, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085391, '02fc739faed8e464540b7e377ea91fbc')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084792[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:33', NULL, 969084792, 'BorrowDirect', 'queued', '2015-02-24 16:59:33')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4346
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085391)[0m
[1m[35mReferentValue Load (2.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084792) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084792)
[1m[36mDispatchedService Load (2.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`id` = 4346 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084792, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (38.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:33', 'Choose your delivery location', 969084792, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (20.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4346[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085391 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084792 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085391[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084792[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 288ms (Views: 21.4ms | ActiveRecord: 114.4ms)
Started GET "/borrow_direct/BorrowDirect/969084792?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 11:59:33 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084792"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084792 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4346[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:33', 969084792, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085391 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084792&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.8ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4346
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016406[0m
[1m[35m (14.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084792&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:59:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084792", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:59:33-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085391 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084792[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084792 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792[0m [["request_id", 969084792]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085391 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085391)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084792 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084792 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085391
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084792
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 18.8ms | ActiveRecord: 45.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3ebb13af1a450e7d7bba6e146a462bf5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:33', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'format', 'journal', 969085392, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'isbn', 1, '9789810743734', 969085392, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:33', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085392, '3ebb13af1a450e7d7bba6e146a462bf5')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084793
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:33', NULL, 969084793, 'BorrowDirect', 'queued', '2015-02-24 16:59:33')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4347[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084793 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085392)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085392)[0m
[1m[35mServiceResponse Load (3.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084793) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084793)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084793 AND `dispatched_services`.`id` = 4347 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:33', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084793, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:33', 'Choose your delivery location', 969084793, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:33' WHERE `dispatched_services`.`id` = 4347
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084793 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085392 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085392)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084793 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084793 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084793 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085392
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084793
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 295ms (Views: 22.5ms | ActiveRecord: 115.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 11:59:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44149face6a3e4e50685f5bcee03b446' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 16:59:33', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'format', 'journal', 969085393, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 16:59:33', 'isbn', 1, '9789810743734', 969085393, '9789810743734')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 16:59:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085393, '44149face6a3e4e50685f5bcee03b446')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084794
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 16:59:34', NULL, 969084794, 'BorrowDirect', 'queued', '2015-02-24 16:59:34')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 16:59:34' WHERE `dispatched_services`.`id` = 4348[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085393)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393)[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084794) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084794)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`id` = 4348 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 16:59:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084794, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:34', 'Choose your delivery location', 969084794, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 16:59:34' WHERE `dispatched_services`.`id` = 4348
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085393 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084794 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085393
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084794
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 256ms (Views: 22.6ms | ActiveRecord: 118.8ms)
Started GET "/borrow_direct/BorrowDirect/969084794" for 127.0.0.1 at 2015-02-24 11:59:34 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084794"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084794 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 16:59:34', 969084794, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085393 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084794&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.5ms)
Started GET "/resolve?umlaut.request_id=969084794&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T11%3A59%3A34-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 11:59:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084794", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T11:59:34-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085393 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084794[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794[0m [["request_id", 969084794]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085393 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085393)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084794 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084794 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084794 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085393[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084794[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 22.7ms | ActiveRecord: 44.9ms)
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:15 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd27ba032cb1a55066218885dbf39963e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:15', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:15', 'format', 'journal', 969085394, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:15', 'isbn', 1, '9789810743734', 969085394, '9789810743734')
[1m[36m (26.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085394, 'd27ba032cb1a55066218885dbf39963e')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084795
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:15', NULL, 969084795, 'test_bd', 'queued', '2015-02-24 17:00:15')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:15' WHERE `dispatched_services`.`id` = 4349[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084795 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085394)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085394)[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084795) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084795)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084795 AND `dispatched_services`.`id` = 4349 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084795, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:00:15' WHERE `dispatched_services`.`id` = 4349[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084795 LIMIT 1[0m
[1m[35mDispatchedService Load (7.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms)
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085394 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085394)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (3.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084795 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (41.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084795 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (100.9ms)
[1m[35mPermalink Load (1.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085394
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084795
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 669ms (Views: 142.5ms | ActiveRecord: 162.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:00:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '81753f513ff3c14a273ba9ca6194bf2a' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:00:16', 'some book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'format', 'book', 969085395, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'genre', 1, 'book', 969085395, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'author', 1, 'smith', 969085395, 'Smith')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'title', 1, 'some book', 969085395, 'Some Book')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:00:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085395, '81753f513ff3c14a273ba9ca6194bf2a')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084796
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:16', NULL, 969084796, 'BorrowDirect', 'queued', '2015-02-24 17:00:16')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4350[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084796 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085395)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085395)[0m
[1m[35mServiceResponse Load (3.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084796) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084796)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084796 AND `dispatched_services`.`id` = 4350 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084796, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4350[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084796 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085395 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085395)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084796 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084796 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085395
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084796
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 243ms (Views: 19.8ms | ActiveRecord: 128.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:00:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '39008cba89dc4ad510d4fb54cfa7b617' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:00:16', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'format', 'journal', 969085396, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'genre', 1, 'article', 969085396, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'title', 1, 'foo', 969085396, 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'author', 1, 'bar', 969085396, 'bar')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:00:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085396, '39008cba89dc4ad510d4fb54cfa7b617')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084797
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:16', NULL, 969084797, 'BorrowDirect', 'queued', '2015-02-24 17:00:16')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4351[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084797 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085396)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085396)[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084797) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084797)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084797 AND `dispatched_services`.`id` = 4351 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4351
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084797 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085396 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085396)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084797 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084797 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085396[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084797[0m
[1m[35m (65.7ms)[0m COMMIT
Completed 200 OK in 261ms (Views: 18.1ms | ActiveRecord: 169.5ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a17cb1fe2e6cf75f8a335c093aeee5e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:00:16', 'foo')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'format', 'book', 969085397, 'book')
[1m[36mSQL (4.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'genre', 1, 'book', 969085397, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'title', 1, 'foo', 969085397, 'foo')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:00:16', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085397, '2a17cb1fe2e6cf75f8a335c093aeee5e')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084798 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:16', NULL, 969084798, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:00:16')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4352
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084798" for 127.0.0.1 at 2015-02-24 12:00:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084798"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084798 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085397 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085397)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084798
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084798
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084798 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084798 [["request_id", 969084798]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085397 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085397)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (5.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084798 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084798 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (2.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085397[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084798[0m
[1m[35m (15.0ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 19.8ms | ActiveRecord: 51.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8070a6cf61bd88831cdac396512c9e1f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:16', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'format', 'journal', 969085398, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:16', 'isbn', 1, '9789810743734', 969085398, '9789810743734')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085398, '8070a6cf61bd88831cdac396512c9e1f')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084799[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:16', NULL, 969084799, 'BorrowDirect', 'queued', '2015-02-24 17:00:16')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4353
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085398)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398)
[1m[36mServiceResponse Load (3.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084799) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084799)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`id` = 4353 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084799, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:16', 'Choose your delivery location', 969084799, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:16' WHERE `dispatched_services`.`id` = 4353[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085398 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084799 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085398[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084799[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 253ms (Views: 24.8ms | ActiveRecord: 114.0ms)
Started GET "/borrow_direct/BorrowDirect/969084799?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:00:17 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084799"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084799 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4353[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:17', 969084799, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085398 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084799&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 37.9ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4353
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016416[0m
[1m[35m (13.8ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084799&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:00:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084799", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:00:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085398 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084799[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084799 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799[0m [["request_id", 969084799]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085398 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085398)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084799 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084799 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085398
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084799
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 22.6ms | ActiveRecord: 45.4ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:00:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ffe93cfc1ba9e3b724020c588619d868' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:17', '0109836413')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'format', 'journal', 969085399, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'isbn', 1, '0109836413', 969085399, '0109836413')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:00:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085399, 'ffe93cfc1ba9e3b724020c588619d868')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084800
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:17', NULL, 969084800, 'BorrowDirect', 'queued', '2015-02-24 17:00:17')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4354[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084800 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085399)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085399)[0m
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084800) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084800)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084800 AND `dispatched_services`.`id` = 4354 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084800, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.7ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:17', 'This item is not currently available from BorrowDirect', 969084800, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4354
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084800 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085399 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085399)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084800 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084800 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085399[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084800[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 291ms (Views: 19.8ms | ActiveRecord: 114.6ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9d8d47c1a0faf0d0401d194a4ce8332c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:17', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'format', 'journal', 969085400, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'isbn', 1, '9789810743734', 969085400, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085400, '9d8d47c1a0faf0d0401d194a4ce8332c')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084801[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:17', NULL, 969084801, 'BorrowDirect', 'queued', '2015-02-24 17:00:17')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4355
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085400)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084801) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084801)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`id` = 4355 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084801, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:17', 'Choose your delivery location', 969084801, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4355[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085400 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084801 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085400[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084801[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 253ms (Views: 23.9ms | ActiveRecord: 113.2ms)
Started GET "/borrow_direct/BorrowDirect/969084801?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:00:17 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084801"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084801 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4355[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:17', 969084801, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085400 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084801&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.3ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:17' WHERE `dispatched_services`.`id` = 4355
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016421[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084801&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:00:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084801", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:00:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085400 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084801[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084801 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801[0m [["request_id", 969084801]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085400 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085400)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084801 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084801 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085400
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084801
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 18.3ms | ActiveRecord: 44.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e9dfc3103b947dfec6bc16d8b88721f8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:17', '9789810743734')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'format', 'journal', 969085401, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:17', 'isbn', 1, '9789810743734', 969085401, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085401, 'e9dfc3103b947dfec6bc16d8b88721f8')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084802
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:18', NULL, 969084802, 'BorrowDirect', 'queued', '2015-02-24 17:00:18')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:18' WHERE `dispatched_services`.`id` = 4356[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084802 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085401)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085401)[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084802) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084802)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084802 AND `dispatched_services`.`id` = 4356 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084802, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:18', 'Choose your delivery location', 969084802, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:18' WHERE `dispatched_services`.`id` = 4356
[1m[36m (13.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084802 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085401 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085401)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084802 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084802 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084802 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085401
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084802
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 296ms (Views: 21.7ms | ActiveRecord: 117.9ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:00:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a5e6ee8299b71983e9ba29c0f6175cd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:00:18', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:18', 'format', 'journal', 969085402, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:00:18', 'isbn', 1, '9789810743734', 969085402, '9789810743734')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:00:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085402, '1a5e6ee8299b71983e9ba29c0f6175cd')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084803
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:00:18', NULL, 969084803, 'BorrowDirect', 'queued', '2015-02-24 17:00:18')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:00:18' WHERE `dispatched_services`.`id` = 4357[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085402)
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402)[0m
[1m[35mServiceResponse Load (2.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084803) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084803)[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`id` = 4357 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:00:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084803, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (13.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:18', 'Choose your delivery location', 969084803, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:00:18' WHERE `dispatched_services`.`id` = 4357
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085402 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084803 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085402
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084803
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 246ms (Views: 22.6ms | ActiveRecord: 114.4ms)
Started GET "/borrow_direct/BorrowDirect/969084803" for 127.0.0.1 at 2015-02-24 12:00:18 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084803"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084803 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:00:18', 969084803, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085402 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084803&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.3ms)
Started GET "/resolve?umlaut.request_id=969084803&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A00%3A18-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:00:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084803", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:00:18-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085402 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084803[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803[0m [["request_id", 969084803]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085402 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085402)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (2.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084803 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084803 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084803 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085402[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084803[0m
[1m[35m (14.1ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 21.9ms | ActiveRecord: 41.4ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:18 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '142745dbafcf6eba19132f375094f255' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:18', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:18', 'format', 'journal', 969085403, 'journal')[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:18', 'isbn', 1, '9789810743734', 969085403, '9789810743734')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:18', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085403, '142745dbafcf6eba19132f375094f255')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084804
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:18', NULL, 969084804, 'test_bd', 'queued', '2015-02-24 17:01:18')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:18' WHERE `dispatched_services`.`id` = 4358[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084804 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085403)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085403)[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084804) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084804)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (22.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084804 AND `dispatched_services`.`id` = 4358 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:19', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084804, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.9ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4358[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084804 LIMIT 1[0m
[1m[35mDispatchedService Load (7.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085403 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085403)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084804 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084804 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (97.8ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085403[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084804[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 657ms (Views: 139.1ms | ActiveRecord: 152.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:01:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '647811b949744a37de62012c2af69ef0' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:01:19', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'format', 'book', 969085404, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'genre', 1, 'book', 969085404, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'author', 1, 'smith', 969085404, 'Smith')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'title', 1, 'some book', 969085404, 'Some Book')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:01:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085404, '647811b949744a37de62012c2af69ef0')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084805[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:19', NULL, 969084805, 'BorrowDirect', 'queued', '2015-02-24 17:01:19')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4359
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084805 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085404)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085404)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084805) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084805)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084805 AND `dispatched_services`.`id` = 4359 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:19', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084805, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4359
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084805 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085404 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085404)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084805 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084805 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085404[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084805[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 240ms (Views: 20.2ms | ActiveRecord: 125.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:01:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '69c6430f41054252cc3a08b7a330cc70' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:01:19', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'format', 'journal', 969085405, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'genre', 1, 'article', 969085405, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'title', 1, 'foo', 969085405, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'author', 1, 'bar', 969085405, 'bar')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:01:19', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085405, '69c6430f41054252cc3a08b7a330cc70')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084806[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:19', NULL, 969084806, 'BorrowDirect', 'queued', '2015-02-24 17:01:19')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4360
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084806 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085405)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085405)
[1m[36mServiceResponse Load (3.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084806) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084806)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084806 AND `dispatched_services`.`id` = 4360 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4360[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084806 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085405 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085405)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084806 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084806 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085405
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084806
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 207ms (Views: 16.8ms | ActiveRecord: 116.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a300d67bf1fc541ab7442259727b87cf' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:01:19', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'format', 'book', 969085406, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'genre', 1, 'book', 969085406, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:19', 'title', 1, 'foo', 969085406, 'foo')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:01:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085406, 'a300d67bf1fc541ab7442259727b87cf')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084807 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:19', NULL, 969084807, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:01:19')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:19' WHERE `dispatched_services`.`id` = 4361[0m
[1m[35m (14.2ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084807" for 127.0.0.1 at 2015-02-24 12:01:19 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084807"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084807 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085406 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085406)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084807[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084807[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084807 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084807[0m [["request_id", 969084807]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085406 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085406)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084807 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084807 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085406
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084807
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 74ms (Views: 19.3ms | ActiveRecord: 46.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:20 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43405091c06078b7088ee88915783bc5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:20', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'format', 'journal', 969085407, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'isbn', 1, '9789810743734', 969085407, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085407, '43405091c06078b7088ee88915783bc5')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084808
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:20', NULL, 969084808, 'BorrowDirect', 'queued', '2015-02-24 17:01:20')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4362[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085407)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407)[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084808) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084808)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`id` = 4362 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084808, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:20', 'Choose your delivery location', 969084808, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4362
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085407 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084808 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085407
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084808
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 254ms (Views: 25.4ms | ActiveRecord: 113.9ms)
Started GET "/borrow_direct/BorrowDirect/969084808?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:01:20 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084808"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084808 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4362
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:20', 969084808, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085407 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084808&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A20-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 52ms (ActiveRecord: 37.3ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4362[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016431
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084808&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A20-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:01:20 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084808", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:01:20-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085407 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084808
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084808 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 [["request_id", 969084808]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085407 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085407)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084808 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084808 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085407[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084808[0m
[1m[35m (19.5ms)[0m COMMIT
Completed 200 OK in 85ms (Views: 22.4ms | ActiveRecord: 53.7ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:01:20 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bba80f14d1dc9adc385578dad9df1356' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:20', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'format', 'journal', 969085408, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'isbn', 1, '0109836413', 969085408, '0109836413')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:01:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085408, 'bba80f14d1dc9adc385578dad9df1356')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084809[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:20', NULL, 969084809, 'BorrowDirect', 'queued', '2015-02-24 17:01:20')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (1.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4363
[1m[36m (24.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084809 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085408)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085408)
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084809) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084809)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084809 AND `dispatched_services`.`id` = 4363 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084809, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:20', 'This item is not currently available from BorrowDirect', 969084809, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4363[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084809 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085408 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085408)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084809 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084809 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085408
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084809
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 307ms (Views: 20.2ms | ActiveRecord: 130.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:20 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45875366c2db3893e87b9d9838300145' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:20', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'format', 'journal', 969085409, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:20', 'isbn', 1, '9789810743734', 969085409, '9789810743734')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:20', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085409, '45875366c2db3893e87b9d9838300145')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084810
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:20', NULL, 969084810, 'BorrowDirect', 'queued', '2015-02-24 17:01:20')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4364[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085409)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409)[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084810) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084810)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`id` = 4364 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084810, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:20', 'Choose your delivery location', 969084810, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:20' WHERE `dispatched_services`.`id` = 4364
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085409 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084810 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085409
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084810
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 254ms (Views: 23.6ms | ActiveRecord: 115.7ms)
Started GET "/borrow_direct/BorrowDirect/969084810?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:01:21 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084810"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084810 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4364
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:21', 969084810, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085409 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084810&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 56ms (ActiveRecord: 40.5ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4364[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016436
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084810&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:01:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084810", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:01:21-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085409 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084810
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084810 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 [["request_id", 969084810]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085409 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085409)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084810 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084810 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085409[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084810[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 18.3ms | ActiveRecord: 45.5ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '721a1067a00841087e0587fa417b33d0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:21', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:21', 'format', 'journal', 969085410, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:21', 'isbn', 1, '9789810743734', 969085410, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085410, '721a1067a00841087e0587fa417b33d0')
[1m[36m (25.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084811[0m
[1m[35m (24.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:21', NULL, 969084811, 'BorrowDirect', 'queued', '2015-02-24 17:01:21')[0m
[1m[35m (26.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4365
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084811 LIMIT 1
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085410)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085410)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084811) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084811)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084811 AND `dispatched_services`.`id` = 4365 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084811, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:21', 'Choose your delivery location', 969084811, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4365[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084811 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085410 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085410)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084811 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084811 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084811 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085410[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084811[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 340ms (Views: 22.2ms | ActiveRecord: 150.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:01:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '53318ae648a93f2bea5b927e43d2d31f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:01:21', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:21', 'format', 'journal', 969085411, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:01:21', 'isbn', 1, '9789810743734', 969085411, '9789810743734')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:01:21', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085411, '53318ae648a93f2bea5b927e43d2d31f')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084812[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:01:21', NULL, 969084812, 'BorrowDirect', 'queued', '2015-02-24 17:01:21')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4366
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085411)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084812) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084812)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (26.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`id` = 4366 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:01:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084812, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (23.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:21', 'Choose your delivery location', 969084812, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:01:21' WHERE `dispatched_services`.`id` = 4366[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085411 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084812 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085411[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084812[0m
[1m[35m (16.2ms)[0m COMMIT
Completed 200 OK in 281ms (Views: 21.9ms | ActiveRecord: 122.1ms)
Started GET "/borrow_direct/BorrowDirect/969084812" for 127.0.0.1 at 2015-02-24 12:01:21 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084812"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084812 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:01:21', 969084812, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085411 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084812&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.0ms)
Started GET "/resolve?umlaut.request_id=969084812&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A01%3A21-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:01:21 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084812", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:01:21-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085411 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084812
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 [["request_id", 969084812]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085411 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085411)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084812 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084812 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084812 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085411
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084812
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 22.7ms | ActiveRecord: 45.4ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9f8f7ec3c3ee39182d52332d6eda55fe' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:08', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'format', 'journal', 969085412, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'isbn', 1, '9789810743734', 969085412, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085412, '9f8f7ec3c3ee39182d52332d6eda55fe')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084813
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:08', NULL, 969084813, 'test_bd', 'queued', '2015-02-24 17:02:08')
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:08' WHERE `dispatched_services`.`id` = 4367[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084813 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085412)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085412)[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084813) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084813)[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (22.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084813 AND `dispatched_services`.`id` = 4367 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084813, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:02:08' WHERE `dispatched_services`.`id` = 4367[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084813 LIMIT 1[0m
[1m[35mDispatchedService Load (7.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085412 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085412)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084813 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (36.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084813 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (101.5ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085412
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084813
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 655ms (Views: 144.0ms | ActiveRecord: 143.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:02:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9332dae96fbdc819117481e579f8cb44' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:08', 'some book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'format', 'book', 969085413, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'genre', 1, 'book', 969085413, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'author', 1, 'smith', 969085413, 'Smith')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:08', 'title', 1, 'some book', 969085413, 'Some Book')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:02:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085413, '9332dae96fbdc819117481e579f8cb44')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084814
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:08', NULL, 969084814, 'BorrowDirect', 'queued', '2015-02-24 17:02:08')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:08' WHERE `dispatched_services`.`id` = 4368[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084814 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085413)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085413)[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084814) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084814)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084814 AND `dispatched_services`.`id` = 4368 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084814, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4368[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084814 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085413 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085413)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084814 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084814 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085413
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084814
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 239ms (Views: 20.0ms | ActiveRecord: 125.2ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:02:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f3640b7f0e6e79063cee8e0535a2736' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:09', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'format', 'journal', 969085414, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'genre', 1, 'article', 969085414, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'title', 1, 'foo', 969085414, 'foo')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'author', 1, 'bar', 969085414, 'bar')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:02:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085414, '8f3640b7f0e6e79063cee8e0535a2736')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084815
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:09', NULL, 969084815, 'BorrowDirect', 'queued', '2015-02-24 17:02:09')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4369[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084815 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085414)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085414)[0m
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084815) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084815)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084815 AND `dispatched_services`.`id` = 4369 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4369
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084815 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085414 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085414)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084815 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084815 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085414[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084815[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 206ms (Views: 17.0ms | ActiveRecord: 116.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0c3d1efbd724e1eb6bec78d6c778cca0' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:09', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'format', 'book', 969085415, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'genre', 1, 'book', 969085415, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'title', 1, 'foo', 969085415, 'foo')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:02:09', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085415, '0c3d1efbd724e1eb6bec78d6c778cca0')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084816 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:09', NULL, 969084816, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:02:09')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4370
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084816" for 127.0.0.1 at 2015-02-24 12:02:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084816"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084816 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085415 LIMIT 1[0m
[1m[35mReferentValue Load (1.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085415)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084816
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084816
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084816 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084816 [["request_id", 969084816]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085415 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085415)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084816 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084816 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085415[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084816[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 18.6ms | ActiveRecord: 48.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d1eb97910ec15d5754cf0b11ef13e3a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:09', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'format', 'journal', 969085416, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:09', 'isbn', 1, '9789810743734', 969085416, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085416, '1d1eb97910ec15d5754cf0b11ef13e3a')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084817[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:09', NULL, 969084817, 'BorrowDirect', 'queued', '2015-02-24 17:02:09')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4371
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085416)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084817) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084817)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`id` = 4371 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084817, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:09', 'Choose your delivery location', 969084817, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4371[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085416 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084817 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085416[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084817[0m
[1m[35m (15.0ms)[0m COMMIT
Completed 200 OK in 254ms (Views: 24.0ms | ActiveRecord: 114.2ms)
Started GET "/borrow_direct/BorrowDirect/969084817?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:02:09 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084817"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084817 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4371[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:09', 969084817, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085416 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084817&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 37.4ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:02:09' WHERE `dispatched_services`.`id` = 4371
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016446[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084817&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:02:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084817", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:02:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085416 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084817[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084817 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817[0m [["request_id", 969084817]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085416 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085416)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084817 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084817 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085416
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084817
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 76ms (Views: 21.6ms | ActiveRecord: 45.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:02:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '677efb186859d181925cfd65fdffeb5e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:09', '0109836413')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'format', 'journal', 969085417, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'isbn', 1, '0109836413', 969085417, '0109836413')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:02:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085417, '677efb186859d181925cfd65fdffeb5e')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084818
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:10', NULL, 969084818, 'BorrowDirect', 'queued', '2015-02-24 17:02:10')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4372[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084818 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085417)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085417)[0m
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084818) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084818)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084818 AND `dispatched_services`.`id` = 4372 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084818, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:10', 'This item is not currently available from BorrowDirect', 969084818, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4372
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084818 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085417 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085417)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084818 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084818 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085417[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084818[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 289ms (Views: 20.5ms | ActiveRecord: 113.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '89021f7d3e177127cbb3342aa93e1052' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:10', '9789810743734')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'format', 'journal', 969085418, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'isbn', 1, '9789810743734', 969085418, '9789810743734')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085418, '89021f7d3e177127cbb3342aa93e1052')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084819[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:10', NULL, 969084819, 'BorrowDirect', 'queued', '2015-02-24 17:02:10')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4373
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085418)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084819) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084819)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`id` = 4373 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084819, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:10', 'Choose your delivery location', 969084819, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4373[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085418 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084819 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085418[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084819[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 257ms (Views: 22.1ms | ActiveRecord: 119.1ms)
Started GET "/borrow_direct/BorrowDirect/969084819?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:02:10 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084819"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084819 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4373[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:10', 969084819, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085418 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084819&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 46ms (ActiveRecord: 37.7ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4373
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016451[0m
[1m[35m (14.8ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084819&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:02:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084819", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:02:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085418 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084819[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084819 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819[0m [["request_id", 969084819]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085418 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085418)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084819 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084819 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085418
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084819
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 18.8ms | ActiveRecord: 44.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c3c9684854c8f59c18ff474f1425b6ab' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:10', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'format', 'journal', 969085419, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:10', 'isbn', 1, '9789810743734', 969085419, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:10', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085419, 'c3c9684854c8f59c18ff474f1425b6ab')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084820
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:10', NULL, 969084820, 'BorrowDirect', 'queued', '2015-02-24 17:02:10')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4374[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084820 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085419)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085419)[0m
[1m[35mServiceResponse Load (3.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084820) ORDER BY id ASC
[1m[36mDispatchedService Load (42.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084820)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084820 AND `dispatched_services`.`id` = 4374 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:10', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084820, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:10', 'Choose your delivery location', 969084820, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:10' WHERE `dispatched_services`.`id` = 4374
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084820 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085419 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085419)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084820 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084820 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084820 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085419
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084820
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 297ms (Views: 23.1ms | ActiveRecord: 118.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a23c9e4a41994229f05e2c209e1d0dde' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:11', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:11', 'format', 'journal', 969085420, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:11', 'isbn', 1, '9789810743734', 969085420, '9789810743734')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085420, 'a23c9e4a41994229f05e2c209e1d0dde')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084821
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:11', NULL, 969084821, 'BorrowDirect', 'queued', '2015-02-24 17:02:11')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:11' WHERE `dispatched_services`.`id` = 4375[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085420)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420)[0m
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084821) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084821)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`id` = 4375 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084821, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:11', 'Choose your delivery location', 969084821, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:11' WHERE `dispatched_services`.`id` = 4375
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085420 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084821 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085420
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084821
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 260ms (Views: 21.7ms | ActiveRecord: 115.5ms)
Started GET "/borrow_direct/BorrowDirect/969084821" for 127.0.0.1 at 2015-02-24 12:02:11 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084821"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084821 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:11', 969084821, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085420 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084821&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.7ms)
Started GET "/resolve?umlaut.request_id=969084821&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:02:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084821", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:02:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085420 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084821[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821[0m [["request_id", 969084821]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085420 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085420)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084821 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084821 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084821 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085420[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084821[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 21.7ms | ActiveRecord: 45.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '289047c4ba8b79209265dbc6842e054d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:24', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:24', 'format', 'journal', 969085421, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:24', 'isbn', 1, '9789810743734', 969085421, '9789810743734')
[1m[36m (22.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085421, '289047c4ba8b79209265dbc6842e054d')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084822
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:24', NULL, 969084822, 'test_bd', 'queued', '2015-02-24 17:02:24')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:24' WHERE `dispatched_services`.`id` = 4376[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084822 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085421)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085421)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084822) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084822)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084822 AND `dispatched_services`.`id` = 4376 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084822, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4376[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084822 LIMIT 1[0m
[1m[35mDispatchedService Load (6.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085421 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085421)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084822 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084822 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (98.4ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085421[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084822[0m
[1m[35m (16.5ms)[0m COMMIT
Completed 200 OK in 657ms (Views: 138.0ms | ActiveRecord: 154.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:02:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '72c86184c245b601c286ab5c0d97d96c' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:25', 'some book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'format', 'book', 969085422, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'genre', 1, 'book', 969085422, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'author', 1, 'smith', 969085422, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'title', 1, 'some book', 969085422, 'Some Book')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:02:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085422, '72c86184c245b601c286ab5c0d97d96c')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084823[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:25', NULL, 969084823, 'BorrowDirect', 'queued', '2015-02-24 17:02:25')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4377
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084823 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085422)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085422)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084823) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084823)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (23.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084823 AND `dispatched_services`.`id` = 4377 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084823, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4377
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084823 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085422 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085422)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084823 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084823 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085422[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084823[0m
[1m[35m (15.4ms)[0m COMMIT
Completed 200 OK in 258ms (Views: 20.3ms | ActiveRecord: 127.5ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:02:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4190d1646216e35b5ced10a2c89eb3dd' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:25', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'format', 'journal', 969085423, 'journal')
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'genre', 1, 'article', 969085423, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'title', 1, 'foo', 969085423, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'author', 1, 'bar', 969085423, 'bar')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:02:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085423, '4190d1646216e35b5ced10a2c89eb3dd')
[1m[36m (19.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084824[0m
[1m[35m (25.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:25', NULL, 969084824, 'BorrowDirect', 'queued', '2015-02-24 17:02:25')[0m
[1m[35m (34.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4378
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084824 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085423)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085423)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084824) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084824)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084824 AND `dispatched_services`.`id` = 4378 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4378[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084824 LIMIT 1[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.2ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085423 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085423)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084824 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084824 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085423
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084824
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 250ms (Views: 20.3ms | ActiveRecord: 156.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7459e1c0d25bb9a492c2b159400b92fa' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:02:25', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'format', 'book', 969085424, 'book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'genre', 1, 'book', 969085424, 'book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:25', 'title', 1, 'foo', 969085424, 'foo')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:02:25', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085424, '7459e1c0d25bb9a492c2b159400b92fa')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084825 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:25', NULL, 969084825, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:02:25')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:25' WHERE `dispatched_services`.`id` = 4379[0m
[1m[35m (15.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084825" for 127.0.0.1 at 2015-02-24 12:02:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084825"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084825 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085424 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085424)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084825[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084825[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084825 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084825[0m [["request_id", 969084825]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085424 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085424)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084825 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084825 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085424
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084825
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 18.9ms | ActiveRecord: 46.8ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:02:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'acb69ad25a1fb71bb40a9c2c82a0f398' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:26', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:26', 'format', 'journal', 969085425, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:26', 'isbn', 1, '9789810743734', 969085425, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:02:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085425, 'acb69ad25a1fb71bb40a9c2c82a0f398')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084826
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:26', NULL, 969084826, 'BorrowDirect', 'queued', '2015-02-24 17:02:26')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4380[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085425)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425)[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084826) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084826)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`id` = 4380 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084826, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:26', 'Choose your delivery location', 969084826, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4380
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085425 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084826 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085425
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084826
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 257ms (Views: 24.7ms | ActiveRecord: 116.2ms)
Started GET "/borrow_direct/BorrowDirect/969084826?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:02:26 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084826"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084826 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4380
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:26', 969084826, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085425 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084826&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 56ms (ActiveRecord: 45.5ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4380[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016461
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084826&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A02%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:02:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084826", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:02:26-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085425 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084826
[1m[36m (23.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084826 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 [["request_id", 969084826]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085425 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085425)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084826 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084826 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085425[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084826[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 87ms (Views: 22.0ms | ActiveRecord: 55.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:02:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b7d34b732ee422417e23c5f30eb194a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:02:26', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:26', 'format', 'journal', 969085426, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:02:26', 'isbn', 1, '0109836413', 969085426, '0109836413')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:02:26', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085426, '7b7d34b732ee422417e23c5f30eb194a')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084827[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:02:26', NULL, 969084827, 'BorrowDirect', 'queued', '2015-02-24 17:02:26')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4381
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084827 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085426)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085426)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084827) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084827)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084827 AND `dispatched_services`.`id` = 4381 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (40.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:02:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084827, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:02:26', 'This item is not currently available from BorrowDirect', 969084827, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:02:26' WHERE `dispatched_services`.`id` = 4381[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084827 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084827[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085426 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085426)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084827 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:06 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'da926cbb07fbbe11789f14e0c970f13e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:06', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:06', 'format', 'journal', 969085427, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:06', 'isbn', 1, '9789810743734', 969085427, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:06', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085427, 'da926cbb07fbbe11789f14e0c970f13e')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (4.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084828
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:06', NULL, 969084828, 'test_bd', 'queued', '2015-02-24 17:03:06')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:06' WHERE `dispatched_services`.`id` = 4382[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084828 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085427)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085427)[0m
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084828) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084828)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084828 AND `dispatched_services`.`id` = 4382 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:06', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084828, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:03:06' WHERE `dispatched_services`.`id` = 4382[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084828 LIMIT 1[0m
[1m[35mDispatchedService Load (7.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085427 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085427)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084828 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (36.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (39.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084828 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (97.8ms)
[1m[36mPermalink Load (1.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085427[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084828[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 642ms (Views: 139.0ms | ActiveRecord: 145.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:03:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2911b6f3c67a5644c17d9d9e30303ebd' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:07', 'some book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'format', 'book', 969085428, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'genre', 1, 'book', 969085428, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'author', 1, 'smith', 969085428, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'title', 1, 'some book', 969085428, 'Some Book')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:03:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085428, '2911b6f3c67a5644c17d9d9e30303ebd')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084829[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:07', NULL, 969084829, 'BorrowDirect', 'queued', '2015-02-24 17:03:07')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4383
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084829 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085428)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085428)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084829) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084829)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084829 AND `dispatched_services`.`id` = 4383 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:07', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084829, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4383
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084829 LIMIT 1
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085428 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085428)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084829 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084829 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085428[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084829[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 243ms (Views: 20.4ms | ActiveRecord: 128.4ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:03:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2d92dc2a95defb2f7ce9cb4bc031134' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:07', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'format', 'journal', 969085429, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'genre', 1, 'article', 969085429, 'article')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'title', 1, 'foo', 969085429, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'author', 1, 'bar', 969085429, 'bar')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:03:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085429, 'b2d92dc2a95defb2f7ce9cb4bc031134')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084830[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:07', NULL, 969084830, 'BorrowDirect', 'queued', '2015-02-24 17:03:07')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4384
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084830 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085429)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085429)
[1m[36mServiceResponse Load (3.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084830) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084830)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084830 AND `dispatched_services`.`id` = 4384 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4384[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084830 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085429 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085429)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084830 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084830 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085429
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084830
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 205ms (Views: 17.4ms | ActiveRecord: 115.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2405a716efcba543f01bd112218438b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:07', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'format', 'book', 969085430, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'genre', 1, 'book', 969085430, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'title', 1, 'foo', 969085430, 'foo')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:03:07', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085430, 'b2405a716efcba543f01bd112218438b')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084831 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:07', NULL, 969084831, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:03:07')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4385[0m
[1m[35m (17.9ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084831" for 127.0.0.1 at 2015-02-24 12:03:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084831"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084831 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085430 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085430)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084831[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084831[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084831 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084831[0m [["request_id", 969084831]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085430 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085430)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084831 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084831 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085430
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084831
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 74ms (Views: 18.6ms | ActiveRecord: 47.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:07 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a1c7fd5a20d757fee75e7ad5223995e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:07', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'format', 'journal', 969085431, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:07', 'isbn', 1, '9789810743734', 969085431, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:07', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085431, '0a1c7fd5a20d757fee75e7ad5223995e')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084832
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:07', NULL, 969084832, 'BorrowDirect', 'queued', '2015-02-24 17:03:07')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:07' WHERE `dispatched_services`.`id` = 4386[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085431)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431)[0m
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084832) ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084832)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`id` = 4386 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084832, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 'Choose your delivery location', 969084832, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4386
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085431 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084832 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085431
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084832
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 259ms (Views: 25.2ms | ActiveRecord: 117.5ms)
Started GET "/borrow_direct/BorrowDirect/969084832?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:03:08 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084832"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084832 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4386
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 969084832, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (23.3ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085431 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084832&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 62ms (ActiveRecord: 47.1ms)
[1m[36mDispatchedService Load (2.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4386[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016468
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084832&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084832", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085431 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084832
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084832 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 [["request_id", 969084832]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085431 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085431)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084832 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084832 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085431[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084832[0m
[1m[35m (16.8ms)[0m COMMIT
Completed 200 OK in 81ms (Views: 22.6ms | ActiveRecord: 49.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:03:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5ec85a7a3e3b4b4bbc6e98736abdf9d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:08', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:08', 'format', 'journal', 969085432, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:08', 'isbn', 1, '0109836413', 969085432, '0109836413')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:03:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085432, 'd5ec85a7a3e3b4b4bbc6e98736abdf9d')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084833[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:08', NULL, 969084833, 'BorrowDirect', 'queued', '2015-02-24 17:03:08')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4387
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084833 LIMIT 1
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085432)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085432)
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084833) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084833)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084833 AND `dispatched_services`.`id` = 4387 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084833, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 'This item is not currently available from BorrowDirect', 969084833, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4387[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084833 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085432 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085432)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084833 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084833 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085432
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084833
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 287ms (Views: 19.7ms | ActiveRecord: 113.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2b14a8882c55b3d12501234d83094753' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:08', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:08', 'format', 'journal', 969085433, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:08', 'isbn', 1, '9789810743734', 969085433, '9789810743734')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:08', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085433, '2b14a8882c55b3d12501234d83094753')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084834
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:08', NULL, 969084834, 'BorrowDirect', 'queued', '2015-02-24 17:03:08')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4388[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085433)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084834) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084834)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`id` = 4388 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:08', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084834, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 'Choose your delivery location', 969084834, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4388
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.6ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085433 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084834 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085433
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084834
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 257ms (Views: 22.9ms | ActiveRecord: 118.4ms)
Started GET "/borrow_direct/BorrowDirect/969084834?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:03:08 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084834"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084834 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4388
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:08', 969084834, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085433 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084834&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 54ms (ActiveRecord: 38.7ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:08' WHERE `dispatched_services`.`id` = 4388[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016473
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084834&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084834", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:08-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085433 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084834
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084834 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 [["request_id", 969084834]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085433 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085433)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084834 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084834 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085433[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084834[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 18.3ms | ActiveRecord: 45.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c218bed2b499ce62fdcda74bf6d752c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:09', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:09', 'format', 'journal', 969085434, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:09', 'isbn', 1, '9789810743734', 969085434, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085434, '5c218bed2b499ce62fdcda74bf6d752c')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084835[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:09', NULL, 969084835, 'BorrowDirect', 'queued', '2015-02-24 17:03:09')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:09' WHERE `dispatched_services`.`id` = 4389
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084835 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085434)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085434)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084835) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084835)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084835 AND `dispatched_services`.`id` = 4389 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084835, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:09', 'Choose your delivery location', 969084835, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:09' WHERE `dispatched_services`.`id` = 4389[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084835 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085434 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085434)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084835 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084835 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084835 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085434[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084835[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 294ms (Views: 22.9ms | ActiveRecord: 114.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '515bdb2b9ba00bc5cc0693352e46c383' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:09', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:09', 'format', 'journal', 969085435, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:09', 'isbn', 1, '9789810743734', 969085435, '9789810743734')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:09', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085435, '515bdb2b9ba00bc5cc0693352e46c383')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084836[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:09', NULL, 969084836, 'BorrowDirect', 'queued', '2015-02-24 17:03:09')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:09' WHERE `dispatched_services`.`id` = 4390
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085435)[0m
[1m[35mReferentValue Load (1.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435)
[1m[36mServiceResponse Load (3.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084836) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084836)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`id` = 4390 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:09', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084836, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:09', 'Choose your delivery location', 969084836, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:09' WHERE `dispatched_services`.`id` = 4390[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085435 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084836 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085435[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084836[0m
[1m[35m (16.6ms)[0m COMMIT
Completed 200 OK in 257ms (Views: 22.1ms | ActiveRecord: 117.6ms)
Started GET "/borrow_direct/BorrowDirect/969084836" for 127.0.0.1 at 2015-02-24 12:03:09 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084836"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084836 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:09', 969084836, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085435 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084836&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.5ms)
Started GET "/resolve?umlaut.request_id=969084836&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A09-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084836", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:09-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085435 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084836
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 [["request_id", 969084836]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085435 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085435)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084836 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084836 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084836 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085435
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084836
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 23.1ms | ActiveRecord: 45.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '73200e6ba1b6284f7aa2961ea0a5aa59' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:50', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'format', 'journal', 969085436, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'isbn', 1, '9789810743734', 969085436, '9789810743734')
[1m[36m (22.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (3.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085436, '73200e6ba1b6284f7aa2961ea0a5aa59')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084837
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:50', NULL, 969084837, 'test_bd', 'queued', '2015-02-24 17:03:50')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:50' WHERE `dispatched_services`.`id` = 4391[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084837 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085436)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085436)[0m
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084837) ORDER BY id ASC
[1m[36mDispatchedService Load (2.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084837)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (23.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084837 AND `dispatched_services`.`id` = 4391 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084837, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.9ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:03:50' WHERE `dispatched_services`.`id` = 4391[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084837 LIMIT 1[0m
[1m[35mDispatchedService Load (7.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085436 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085436)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084837 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084837 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (97.4ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085436[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084837[0m
[1m[35m (14.1ms)[0m COMMIT
Completed 200 OK in 661ms (Views: 139.1ms | ActiveRecord: 148.9ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:03:50 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '21ab9f190b5b636f1049421a13b997e5' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:50', 'some book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'format', 'book', 969085437, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'genre', 1, 'book', 969085437, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'author', 1, 'smith', 969085437, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:50', 'title', 1, 'some book', 969085437, 'Some Book')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:03:50', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085437, '21ab9f190b5b636f1049421a13b997e5')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084838[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:50', NULL, 969084838, 'BorrowDirect', 'queued', '2015-02-24 17:03:50')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:50' WHERE `dispatched_services`.`id` = 4392
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084838 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085437)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085437)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084838) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084838)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084838 AND `dispatched_services`.`id` = 4392 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:50', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084838, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:50' WHERE `dispatched_services`.`id` = 4392
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084838 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085437 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085437)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084838 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084838 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085437[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (28.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084838[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 261ms (Views: 20.0ms | ActiveRecord: 149.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:03:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94b9eb857d0b5952a68f201bb219cd47' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:51', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'format', 'journal', 969085438, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'genre', 1, 'article', 969085438, 'article')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'title', 1, 'foo', 969085438, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'author', 1, 'bar', 969085438, 'bar')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:03:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085438, '94b9eb857d0b5952a68f201bb219cd47')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084839[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:51', NULL, 969084839, 'BorrowDirect', 'queued', '2015-02-24 17:03:51')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4393
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084839 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085438)[0m
[1m[35mReferentValue Load (1.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085438)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084839) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084839)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084839 AND `dispatched_services`.`id` = 4393 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4393[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084839 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085438 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085438)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084839 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084839 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085438
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084839
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 208ms (Views: 18.2ms | ActiveRecord: 116.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd65b7a38a22ebd908f068dc73f0a949b' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:03:51', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'format', 'book', 969085439, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'genre', 1, 'book', 969085439, 'book')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'title', 1, 'foo', 969085439, 'foo')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:03:51', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085439, 'd65b7a38a22ebd908f068dc73f0a949b')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084840 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:51', NULL, 969084840, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:03:51')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4394[0m
[1m[35m (14.5ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084840" for 127.0.0.1 at 2015-02-24 12:03:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084840"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084840 LIMIT 1[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085439 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085439)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084840[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084840[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084840 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084840[0m [["request_id", 969084840]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085439 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085439)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084840 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084840 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085439
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084840
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 75ms (Views: 19.4ms | ActiveRecord: 48.0ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5facb802150df28fa0d8f6926fdeee6' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:51', '9789810743734')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'format', 'journal', 969085440, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'isbn', 1, '9789810743734', 969085440, '9789810743734')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085440, 'c5facb802150df28fa0d8f6926fdeee6')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084841
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:51', NULL, 969084841, 'BorrowDirect', 'queued', '2015-02-24 17:03:51')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4395[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085440)
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440)[0m
[1m[35mServiceResponse Load (3.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084841) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084841)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`id` = 4395 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:51', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084841, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:51', 'Choose your delivery location', 969084841, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4395
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085440 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084841 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085440
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084841
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 258ms (Views: 26.4ms | ActiveRecord: 115.1ms)
Started GET "/borrow_direct/BorrowDirect/969084841?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:03:51 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084841"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084841 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4395
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:51', 969084841, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085440 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084841&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 52ms (ActiveRecord: 41.1ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4395[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016483
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084841&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A51-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084841", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:51-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085440 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084841
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084841 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 [["request_id", 969084841]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085440 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085440)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084841 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084841 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085440[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084841[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 22.5ms | ActiveRecord: 47.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:03:51 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e863841fe57396f7cf7a04d4a8490d05' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:51', '0109836413')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'format', 'journal', 969085441, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:51', 'isbn', 1, '0109836413', 969085441, '0109836413')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:03:51', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085441, 'e863841fe57396f7cf7a04d4a8490d05')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084842[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:51', NULL, 969084842, 'BorrowDirect', 'queued', '2015-02-24 17:03:51')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (39.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:51' WHERE `dispatched_services`.`id` = 4396
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084842 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085441)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085441)
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084842) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084842)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084842 AND `dispatched_services`.`id` = 4396 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084842, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:52', 'This item is not currently available from BorrowDirect', 969084842, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4396[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084842 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084842[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085441 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085441)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084842 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (27.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (28.4ms)
Completed 500 Internal Server Error in 285ms
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd88f0054be335d528dc7aa46e9a7a7d8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:52', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'format', 'journal', 969085442, 'journal')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'isbn', 1, '9789810743734', 969085442, '9789810743734')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085442, 'd88f0054be335d528dc7aa46e9a7a7d8')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084843[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:52', NULL, 969084843, 'BorrowDirect', 'queued', '2015-02-24 17:03:52')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4397
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085442)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442)
[1m[36mServiceResponse Load (3.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084843) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084843)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`id` = 4397 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084843, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:52', 'Choose your delivery location', 969084843, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4397[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085442 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084843 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085442[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084843[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 253ms (Views: 22.2ms | ActiveRecord: 115.3ms)
Started GET "/borrow_direct/BorrowDirect/969084843?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:03:52 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084843"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084843 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4397[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:52', 969084843, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085442 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084843&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.7ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4397
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016488[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084843&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A52-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084843", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:52-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085442 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084843[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084843 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843[0m [["request_id", 969084843]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085442 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085442)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084843 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084843 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085442
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084843
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 74ms (Views: 19.1ms | ActiveRecord: 45.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3396a824685bcd2628e7f486cb3e358' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:52', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'format', 'journal', 969085443, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'isbn', 1, '9789810743734', 969085443, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085443, 'b3396a824685bcd2628e7f486cb3e358')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084844
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:52', NULL, 969084844, 'BorrowDirect', 'queued', '2015-02-24 17:03:52')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4398[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084844 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085443)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085443)[0m
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084844) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084844)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084844 AND `dispatched_services`.`id` = 4398 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:52', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084844, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:52', 'Choose your delivery location', 969084844, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:52' WHERE `dispatched_services`.`id` = 4398
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084844 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085443 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085443)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084844 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084844 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084844 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085443
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084844
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 252ms (Views: 22.2ms | ActiveRecord: 113.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:03:52 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '512a01518d50476f108212400a00090b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:03:52', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'format', 'journal', 969085444, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:03:52', 'isbn', 1, '9789810743734', 969085444, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:03:52', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085444, '512a01518d50476f108212400a00090b')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084845
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:03:53', NULL, 969084845, 'BorrowDirect', 'queued', '2015-02-24 17:03:53')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:03:53' WHERE `dispatched_services`.`id` = 4399[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085444)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084845) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084845)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`id` = 4399 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:03:53', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084845, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:53', 'Choose your delivery location', 969084845, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:03:53' WHERE `dispatched_services`.`id` = 4399
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085444 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084845 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085444
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084845
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 254ms (Views: 22.9ms | ActiveRecord: 114.5ms)
Started GET "/borrow_direct/BorrowDirect/969084845" for 127.0.0.1 at 2015-02-24 12:03:53 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084845"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084845 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:03:53', 969084845, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085444 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084845&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 20.7ms)
Started GET "/resolve?umlaut.request_id=969084845&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A03%3A53-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:03:53 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084845", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:03:53-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085444 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084845[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845[0m [["request_id", 969084845]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085444 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085444)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084845 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084845 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084845 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085444[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084845[0m
[1m[35m (14.1ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 24.0ms | ActiveRecord: 44.7ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5b433ae983a5306da48950b1fec159f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:11', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'format', 'journal', 969085445, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'isbn', 1, '9789810743734', 969085445, '9789810743734')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085445, 'c5b433ae983a5306da48950b1fec159f')[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084846
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:11', NULL, 969084846, 'test_bd', 'queued', '2015-02-24 17:04:11')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4400[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084846 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085445)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085445)[0m
[1m[35mServiceResponse Load (3.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084846) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084846)[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084846 AND `dispatched_services`.`id` = 4400 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084846, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4400[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084846 LIMIT 1[0m
[1m[35mDispatchedService Load (6.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085445 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085445)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084846 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084846 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (98.5ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085445[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084846[0m
[1m[35m (15.3ms)[0m COMMIT
Completed 200 OK in 650ms (Views: 138.9ms | ActiveRecord: 153.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:04:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '590a770e462586fb54ea84645a430506' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:04:11', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'format', 'book', 969085446, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'genre', 1, 'book', 969085446, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'author', 1, 'smith', 969085446, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'title', 1, 'some book', 969085446, 'Some Book')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:04:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085446, '590a770e462586fb54ea84645a430506')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084847[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:11', NULL, 969084847, 'BorrowDirect', 'queued', '2015-02-24 17:04:11')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4401
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084847 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085446)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085446)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084847) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084847)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084847 AND `dispatched_services`.`id` = 4401 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:11', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084847, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4401
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084847 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085446 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085446)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084847 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084847 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085446[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084847[0m
[1m[35m (14.2ms)[0m COMMIT
Completed 200 OK in 240ms (Views: 20.1ms | ActiveRecord: 124.0ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:04:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e7d88d9fa9fa462e44b29716448be681' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:04:11', 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'format', 'journal', 969085447, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'genre', 1, 'article', 969085447, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'title', 1, 'foo', 969085447, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:11', 'author', 1, 'bar', 969085447, 'bar')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:04:11', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085447, 'e7d88d9fa9fa462e44b29716448be681')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084848[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:11', NULL, 969084848, 'BorrowDirect', 'queued', '2015-02-24 17:04:11')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4402
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084848 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085447)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085447)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084848) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084848)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084848 AND `dispatched_services`.`id` = 4402 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:11' WHERE `dispatched_services`.`id` = 4402[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084848 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085447 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085447)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (6.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084848 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084848 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085447
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084848
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 209ms (Views: 17.8ms | ActiveRecord: 119.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0dc4e13decd0cf1f76685f67d29fc566' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:04:12', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'format', 'book', 969085448, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'genre', 1, 'book', 969085448, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'title', 1, 'foo', 969085448, 'foo')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:04:12', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085448, '0dc4e13decd0cf1f76685f67d29fc566')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084849 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:12', NULL, 969084849, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:04:12')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4403[0m
[1m[35m (14.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084849" for 127.0.0.1 at 2015-02-24 12:04:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084849"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084849 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085448 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085448)[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084849[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084849[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084849 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084849[0m [["request_id", 969084849]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085448 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085448)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084849 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084849 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085448
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084849
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 74ms (Views: 19.0ms | ActiveRecord: 47.6ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bbddac98828c53365ea6963b0f950c37' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:12', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'format', 'journal', 969085449, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'isbn', 1, '9789810743734', 969085449, '9789810743734')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085449, 'bbddac98828c53365ea6963b0f950c37')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084850
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:12', NULL, 969084850, 'BorrowDirect', 'queued', '2015-02-24 17:04:12')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4404[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085449)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449)[0m
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084850) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084850)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`id` = 4404 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084850, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:12', 'Choose your delivery location', 969084850, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4404
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085449 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084850 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085449
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084850
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 259ms (Views: 24.7ms | ActiveRecord: 119.3ms)
Started GET "/borrow_direct/BorrowDirect/969084850?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:04:12 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084850"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084850 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4404
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:12', 969084850, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085449 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084850&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 38.2ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4404[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016498
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084850&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:04:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084850", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:04:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085449 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084850
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084850 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 [["request_id", 969084850]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085449 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085449)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084850 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084850 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085449[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084850[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 22.3ms | ActiveRecord: 44.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:04:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f073ec6f30d9c7e75bad4cb1a2d78b10' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:12', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'format', 'journal', 969085450, 'journal')
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:12', 'isbn', 1, '0109836413', 969085450, '0109836413')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (2.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:04:12', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085450, 'f073ec6f30d9c7e75bad4cb1a2d78b10')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084851[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:12', NULL, 969084851, 'BorrowDirect', 'queued', '2015-02-24 17:04:12')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4405
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084851 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085450)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085450)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084851) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084851)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084851 AND `dispatched_services`.`id` = 4405 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:12', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084851, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:12', 'This item is not currently available from BorrowDirect', 969084851, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:12' WHERE `dispatched_services`.`id` = 4405[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084851 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085450 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085450)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (3.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084851 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084851 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085450[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084851[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 297ms (Views: 20.6ms | ActiveRecord: 120.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db0f4db78724824d1d6a559e7d9b687e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:13', '9789810743734')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'format', 'journal', 969085451, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'isbn', 1, '9789810743734', 969085451, '9789810743734')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085451, 'db0f4db78724824d1d6a559e7d9b687e')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084852[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:13', NULL, 969084852, 'BorrowDirect', 'queued', '2015-02-24 17:04:13')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4406
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085451)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084852) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084852)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`id` = 4406 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084852, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:13', 'Choose your delivery location', 969084852, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (20.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4406[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085451 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084852 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085451[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084852[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 262ms (Views: 21.5ms | ActiveRecord: 117.1ms)
Started GET "/borrow_direct/BorrowDirect/969084852?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:04:13 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084852"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084852 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4406[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:13', 969084852, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085451 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084852&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 52ms (ActiveRecord: 37.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4406
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016503[0m
[1m[35m (14.0ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084852&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:04:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084852", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:04:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1[0m
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085451 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084852[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084852 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852[0m [["request_id", 969084852]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085451 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085451)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084852 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084852 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085451
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084852
[1m[36m (21.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 81ms (Views: 19.1ms | ActiveRecord: 51.6ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '06b610b53b3f167dfe8a8bcec53beb50' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:13', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'format', 'journal', 969085452, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'isbn', 1, '9789810743734', 969085452, '9789810743734')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085452, '06b610b53b3f167dfe8a8bcec53beb50')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084853
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:13', NULL, 969084853, 'BorrowDirect', 'queued', '2015-02-24 17:04:13')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4407[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084853 LIMIT 1[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085452)
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085452)[0m
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084853) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084853)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084853 AND `dispatched_services`.`id` = 4407 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084853, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:13', 'Choose your delivery location', 969084853, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4407
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084853 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085452 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085452)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084853 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084853 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084853 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085452
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084853
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 308ms (Views: 23.8ms | ActiveRecord: 121.7ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0f23dfb88f028e98d5add8b9094b84ea' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:13', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'format', 'journal', 969085453, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:13', 'isbn', 1, '9789810743734', 969085453, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:13', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085453, '0f23dfb88f028e98d5add8b9094b84ea')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084854
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:13', NULL, 969084854, 'BorrowDirect', 'queued', '2015-02-24 17:04:13')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:13' WHERE `dispatched_services`.`id` = 4408[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085453)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453)[0m
[1m[35mServiceResponse Load (3.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084854) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084854)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`id` = 4408 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:13', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084854, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:13', 'Choose your delivery location', 969084854, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:14' WHERE `dispatched_services`.`id` = 4408
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085453 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084854 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085453
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084854
[1m[36m (22.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 279ms (Views: 21.0ms | ActiveRecord: 136.1ms)
Started GET "/borrow_direct/BorrowDirect/969084854" for 127.0.0.1 at 2015-02-24 12:04:14 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084854"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084854 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:04:14', 969084854, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085453 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084854&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.1ms)
Started GET "/resolve?umlaut.request_id=969084854&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A04%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:04:14 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084854", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:04:14-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085453 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084854[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854[0m [["request_id", 969084854]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085453 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085453)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084854 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084854 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084854 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085453[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084854[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 22.4ms | ActiveRecord: 45.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:04:58 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4f11f0e3ab20b49666fdb59206e637af' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:04:59', '9789810743734')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'format', 'journal', 969085454, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'isbn', 1, '9789810743734', 969085454, '9789810743734')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:04:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085454, '4f11f0e3ab20b49666fdb59206e637af')[0m
[1m[35m (19.4ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084855
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:59', NULL, 969084855, 'test_bd', 'queued', '2015-02-24 17:04:59')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:59' WHERE `dispatched_services`.`id` = 4409[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084855 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085454)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085454)[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084855) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084855)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (29.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084855 AND `dispatched_services`.`id` = 4409 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084855, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (18.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:04:59' WHERE `dispatched_services`.`id` = 4409[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084855 LIMIT 1[0m
[1m[35mDispatchedService Load (7.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085454 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085454)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[36mServiceResponse Load (5.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084855 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (35.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084855 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (99.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085454[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084855[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 669ms (Views: 139.6ms | ActiveRecord: 151.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:04:59 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dcf8e02dbac8d529488e00f9c9a5cca5' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:04:59', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'format', 'book', 969085455, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'genre', 1, 'book', 969085455, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'author', 1, 'smith', 969085455, 'Smith')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:04:59', 'title', 1, 'some book', 969085455, 'Some Book')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:04:59', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085455, 'dcf8e02dbac8d529488e00f9c9a5cca5')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084856[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:04:59', NULL, 969084856, 'BorrowDirect', 'queued', '2015-02-24 17:04:59')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:04:59' WHERE `dispatched_services`.`id` = 4410
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084856 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085455)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085455)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084856) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084856)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084856 AND `dispatched_services`.`id` = 4410 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:04:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084856, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:04:59' WHERE `dispatched_services`.`id` = 4410
[1m[36m (18.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084856 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085455 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085455)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084856 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084856 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085455[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084856[0m
[1m[35m (17.8ms)[0m COMMIT
Completed 200 OK in 253ms (Views: 20.3ms | ActiveRecord: 133.2ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:05:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '009bb498d16d3847bea89be8ad771140' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:00', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'format', 'journal', 969085456, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'genre', 1, 'article', 969085456, 'article')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'title', 1, 'foo', 969085456, 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'author', 1, 'bar', 969085456, 'bar')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:05:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085456, '009bb498d16d3847bea89be8ad771140')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084857[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:00', NULL, 969084857, 'BorrowDirect', 'queued', '2015-02-24 17:05:00')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4411
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084857 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085456)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085456)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084857) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084857)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084857 AND `dispatched_services`.`id` = 4411 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4411[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084857 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085456 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085456)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084857 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084857 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085456
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084857
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 214ms (Views: 18.5ms | ActiveRecord: 122.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ada57951b5502b732f577a78f75e162e' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:00', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'format', 'book', 969085457, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'genre', 1, 'book', 969085457, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'title', 1, 'foo', 969085457, 'foo')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:05:00', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085457, 'ada57951b5502b732f577a78f75e162e')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084858 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:00', NULL, 969084858, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:05:00')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4412[0m
[1m[35m (14.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084858" for 127.0.0.1 at 2015-02-24 12:05:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084858"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084858 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085457 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085457)[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084858[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084858[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084858 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084858[0m [["request_id", 969084858]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085457 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085457)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084858 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084858 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085457
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084858
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 74ms (Views: 18.0ms | ActiveRecord: 48.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4ca0643904941755ca9209b58407219d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:00', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'format', 'journal', 969085458, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'isbn', 1, '9789810743734', 969085458, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085458, '4ca0643904941755ca9209b58407219d')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084859
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:00', NULL, 969084859, 'BorrowDirect', 'queued', '2015-02-24 17:05:00')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4413[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085458)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458)[0m
[1m[35mServiceResponse Load (3.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084859) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084859)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`id` = 4413 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084859, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:00', 'Choose your delivery location', 969084859, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4413
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085458 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084859 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085458
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084859
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 260ms (Views: 24.4ms | ActiveRecord: 119.7ms)
Started GET "/borrow_direct/BorrowDirect/969084859?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:05:00 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084859"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084859 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4413
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:00', 969084859, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085458 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084859&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 37.9ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:05:00' WHERE `dispatched_services`.`id` = 4413[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016513
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084859&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084859", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:00-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085458 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084859
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084859 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 [["request_id", 969084859]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085458 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085458)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084859 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084859 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085458[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084859[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 77ms (Views: 22.2ms | ActiveRecord: 45.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:05:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0848894492b92cfee467a6d66ee3f402' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:00', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'format', 'journal', 969085459, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:00', 'isbn', 1, '0109836413', 969085459, '0109836413')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:05:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085459, '0848894492b92cfee467a6d66ee3f402')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084860[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:01', NULL, 969084860, 'BorrowDirect', 'queued', '2015-02-24 17:05:01')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4414
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084860 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085459)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085459)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084860) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084860)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084860 AND `dispatched_services`.`id` = 4414 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084860, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:01', 'This item is not currently available from BorrowDirect', 969084860, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4414[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084860 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085459 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085459)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084860 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084860 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085459
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084860
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 294ms (Views: 19.5ms | ActiveRecord: 116.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '415cc1ab681af3e3f61600267a0adebb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:01', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:01', 'format', 'journal', 969085460, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:01', 'isbn', 1, '9789810743734', 969085460, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085460, '415cc1ab681af3e3f61600267a0adebb')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084861
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:01', NULL, 969084861, 'BorrowDirect', 'queued', '2015-02-24 17:05:01')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4415[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085460)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084861) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084861)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`id` = 4415 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084861, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:01', 'Choose your delivery location', 969084861, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4415
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085460 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084861 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085460
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084861
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 251ms (Views: 21.2ms | ActiveRecord: 114.1ms)
Started GET "/borrow_direct/BorrowDirect/969084861?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:05:01 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084861"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084861 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4415
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:01', 969084861, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085460 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084861&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 54ms (ActiveRecord: 39.4ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4415[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016518
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084861&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084861", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:01-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085460 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084861
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084861 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 [["request_id", 969084861]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085460 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085460)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084861 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084861 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085460[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084861[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 72ms (Views: 18.1ms | ActiveRecord: 45.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5c1c81322be76b81ad7e314028a7fb1f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:01', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:01', 'format', 'journal', 969085461, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:01', 'isbn', 1, '9789810743734', 969085461, '9789810743734')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085461, '5c1c81322be76b81ad7e314028a7fb1f')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084862[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:01', NULL, 969084862, 'BorrowDirect', 'queued', '2015-02-24 17:05:01')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4416
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084862 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085461)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085461)
[1m[36mServiceResponse Load (3.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084862) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084862)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084862 AND `dispatched_services`.`id` = 4416 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084862, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:01', 'Choose your delivery location', 969084862, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:01' WHERE `dispatched_services`.`id` = 4416[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084862 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085461 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085461)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084862 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084862 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084862 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085461[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084862[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 295ms (Views: 21.4ms | ActiveRecord: 115.5ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cdae772f520a239b136486614d103b26' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:02', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:02', 'format', 'journal', 969085462, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:02', 'isbn', 1, '9789810743734', 969085462, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085462, 'cdae772f520a239b136486614d103b26')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084863[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:02', NULL, 969084863, 'BorrowDirect', 'queued', '2015-02-24 17:05:02')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:02' WHERE `dispatched_services`.`id` = 4417
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085462)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462)
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084863) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084863)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`id` = 4417 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084863, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:02', 'Choose your delivery location', 969084863, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:02' WHERE `dispatched_services`.`id` = 4417[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085462 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084863 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085462[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084863[0m
[1m[35m (15.3ms)[0m COMMIT
Completed 200 OK in 254ms (Views: 22.1ms | ActiveRecord: 115.7ms)
Started GET "/borrow_direct/BorrowDirect/969084863" for 127.0.0.1 at 2015-02-24 12:05:02 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084863"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084863 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:02', 969084863, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085462 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084863&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.0ms)
Started GET "/resolve?umlaut.request_id=969084863&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084863", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:02-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085462 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084863
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 [["request_id", 969084863]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085462 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085462)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084863 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084863 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084863 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085462
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084863
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 77ms (Views: 22.1ms | ActiveRecord: 46.5ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:45 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ebfb3241587f6a4a1db6cb54cad2ff31' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:45', '9789810743734')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:45', 'format', 'journal', 969085463, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:45', 'isbn', 1, '9789810743734', 969085463, '9789810743734')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:45', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085463, 'ebfb3241587f6a4a1db6cb54cad2ff31')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084864
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:45', NULL, 969084864, 'test_bd', 'queued', '2015-02-24 17:05:45')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:45' WHERE `dispatched_services`.`id` = 4418[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084864 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085463)
[1m[36mReferentValue Load (1.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085463)[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084864) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084864)[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084864 AND `dispatched_services`.`id` = 4418 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084864, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4418[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084864 LIMIT 1[0m
[1m[35mDispatchedService Load (6.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms)
[1m[35mReferent Load (1.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085463 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085463)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.9ms)
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084864 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (31.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (38.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084864 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (101.6ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085463
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084864
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 642ms (Views: 139.3ms | ActiveRecord: 143.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:05:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ba72625a0c6623e36c2e09343012a427' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.8ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:46', 'some book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'format', 'book', 969085464, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'genre', 1, 'book', 969085464, 'book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'author', 1, 'smith', 969085464, 'Smith')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'title', 1, 'some book', 969085464, 'Some Book')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:05:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085464, 'ba72625a0c6623e36c2e09343012a427')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084865
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:46', NULL, 969084865, 'BorrowDirect', 'queued', '2015-02-24 17:05:46')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4419[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084865 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085464)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085464)[0m
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084865) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084865)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084865 AND `dispatched_services`.`id` = 4419 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:46', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084865, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4419[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084865 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085464 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085464)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084865 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084865 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085464
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084865
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 252ms (Views: 20.2ms | ActiveRecord: 134.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:05:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7aab9969b4576c5bdb0c43d59f35659d' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:46', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'format', 'journal', 969085465, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'genre', 1, 'article', 969085465, 'article')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'title', 1, 'foo', 969085465, 'foo')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'author', 1, 'bar', 969085465, 'bar')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:05:46', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085465, '7aab9969b4576c5bdb0c43d59f35659d')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084866
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:46', NULL, 969084866, 'BorrowDirect', 'queued', '2015-02-24 17:05:46')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4420[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084866 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085465)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085465)[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084866) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084866)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084866 AND `dispatched_services`.`id` = 4420 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4420
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084866 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.4ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085465 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085465)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084866 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084866 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085465[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084866[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 207ms (Views: 18.5ms | ActiveRecord: 115.8ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ebfadc918a11a8274c3ebbb47051356' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:05:46', 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'format', 'book', 969085466, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'genre', 1, 'book', 969085466, 'book')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:46', 'title', 1, 'foo', 969085466, 'foo')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:05:46', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085466, '7ebfadc918a11a8274c3ebbb47051356')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084867 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:46', NULL, 969084867, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:05:46')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:46' WHERE `dispatched_services`.`id` = 4421
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084867" for 127.0.0.1 at 2015-02-24 12:05:46 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084867"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084867 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085466 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085466)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084867
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084867
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084867 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084867 [["request_id", 969084867]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085466 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085466)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084867 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084867 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085466[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084867[0m
[1m[35m (15.8ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 18.6ms | ActiveRecord: 48.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1519c65027c15d0a1f2f211704e277dd' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:47', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'format', 'journal', 969085467, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'isbn', 1, '9789810743734', 969085467, '9789810743734')[0m
[1m[35m (32.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085467, '1519c65027c15d0a1f2f211704e277dd')
[1m[36m (24.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084868[0m
[1m[35m (29.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:47', NULL, 969084868, 'BorrowDirect', 'queued', '2015-02-24 17:05:47')[0m
[1m[35m (23.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (19.8ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4422
[1m[36m (36.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085467)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467)
[1m[36mServiceResponse Load (4.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084868) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084868)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.2ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`id` = 4422 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084868, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:47', 'Choose your delivery location', 969084868, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4422[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085467 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084868 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085467[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084868[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 353ms (Views: 25.1ms | ActiveRecord: 209.6ms)
Started GET "/borrow_direct/BorrowDirect/969084868?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:05:47 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084868"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084868 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4422[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:47', 969084868, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085467 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084868&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 37.4ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4422
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016528[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084868&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A47-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084868", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:47-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085467 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084868[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084868 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868[0m [["request_id", 969084868]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085467 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085467)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084868 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084868 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085467
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084868
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 81ms (Views: 23.1ms | ActiveRecord: 48.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:05:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'cf1fb663bd6e41ef923b7a870110904d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:47', '0109836413')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'format', 'journal', 969085468, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'isbn', 1, '0109836413', 969085468, '0109836413')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:05:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085468, 'cf1fb663bd6e41ef923b7a870110904d')[0m
[1m[35m (18.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (40.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084869
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:47', NULL, 969084869, 'BorrowDirect', 'queued', '2015-02-24 17:05:47')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4423[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084869 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085468)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085468)[0m
[1m[35mServiceResponse Load (3.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084869) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084869)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084869 AND `dispatched_services`.`id` = 4423 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:47', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084869, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:47', 'This item is not currently available from BorrowDirect', 969084869, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4423
[1m[36m (22.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084869 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085468 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085468)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084869 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084869 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085468[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084869[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 304ms (Views: 19.1ms | ActiveRecord: 159.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:47 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '95831634eb3c0191b12f40ea062e74b8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:47', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'format', 'journal', 969085469, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:47', 'isbn', 1, '9789810743734', 969085469, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:47', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085469, '95831634eb3c0191b12f40ea062e74b8')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084870[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:47', NULL, 969084870, 'BorrowDirect', 'queued', '2015-02-24 17:05:47')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:47' WHERE `dispatched_services`.`id` = 4424
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085469)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469)
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084870) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084870)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`id` = 4424 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084870, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 'Choose your delivery location', 969084870, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4424[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085469 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084870 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085469[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084870[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 250ms (Views: 21.7ms | ActiveRecord: 113.2ms)
Started GET "/borrow_direct/BorrowDirect/969084870?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:05:48 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084870"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084870 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4424[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 969084870, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085469 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084870&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 54ms (ActiveRecord: 38.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4424
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016533[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084870&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A48-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084870", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:48-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085469 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084870[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084870 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870[0m [["request_id", 969084870]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085469 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085469)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084870 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084870 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085469
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084870
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 74ms (Views: 18.9ms | ActiveRecord: 46.0ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3af755308523a6923c967fb820e54544' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:48', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:48', 'format', 'journal', 969085470, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:48', 'isbn', 1, '9789810743734', 969085470, '9789810743734')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085470, '3af755308523a6923c967fb820e54544')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084871
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:48', NULL, 969084871, 'BorrowDirect', 'queued', '2015-02-24 17:05:48')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4425[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084871 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085470)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085470)[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084871) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084871)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (21.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084871 AND `dispatched_services`.`id` = 4425 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084871, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 'Choose your delivery location', 969084871, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4425
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084871 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085470 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085470)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084871 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084871 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084871 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085470
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084871
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 307ms (Views: 22.5ms | ActiveRecord: 115.0ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:05:48 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5eb475303147bc9d0d4bbae5dda1a283' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:05:48', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:48', 'format', 'journal', 969085471, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:05:48', 'isbn', 1, '9789810743734', 969085471, '9789810743734')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:05:48', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085471, '5eb475303147bc9d0d4bbae5dda1a283')[0m
[1m[35m (20.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084872
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:05:48', NULL, 969084872, 'BorrowDirect', 'queued', '2015-02-24 17:05:48')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4426[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085471)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471)[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084872) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084872)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`id` = 4426 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:05:48', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084872, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 'Choose your delivery location', 969084872, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:05:48' WHERE `dispatched_services`.`id` = 4426
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085471 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084872 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085471
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084872
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 280ms (Views: 21.6ms | ActiveRecord: 131.3ms)
Started GET "/borrow_direct/BorrowDirect/969084872" for 127.0.0.1 at 2015-02-24 12:05:48 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084872"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084872 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:05:48', 969084872, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (25.1ms)[0m COMMIT
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085471 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084872&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 37ms (ActiveRecord: 31.3ms)
Started GET "/resolve?umlaut.request_id=969084872&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A05%3A49-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:05:49 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084872", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:05:49-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085471 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471)[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084872[0m
[1m[35m (23.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872[0m [["request_id", 969084872]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085471 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085471)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (6.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084872 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084872 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084872 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085471[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084872[0m
[1m[35m (15.0ms)[0m COMMIT
Completed 200 OK in 91ms (Views: 24.6ms | ActiveRecord: 57.2ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:33 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54551bfc4d57fb9fd205fb0a4a1049b3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:34', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'format', 'journal', 969085472, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'isbn', 1, '9789810743734', 969085472, '9789810743734')
[1m[36m (21.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085472, '54551bfc4d57fb9fd205fb0a4a1049b3')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084873
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:34', NULL, 969084873, 'test_bd', 'queued', '2015-02-24 17:06:34')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:34' WHERE `dispatched_services`.`id` = 4427[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084873 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085472)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085472)[0m
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084873) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084873)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.5ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084873 AND `dispatched_services`.`id` = 4427 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084873, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.3ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 17:06:34' WHERE `dispatched_services`.`id` = 4427[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084873 LIMIT 1[0m
[1m[35mDispatchedService Load (7.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.4ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085472 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085472)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (2.0ms)
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084873 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (33.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (40.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084873 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (102.7ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085472
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084873
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 655ms (Views: 143.3ms | ActiveRecord: 152.7ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 12:06:34 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f139bb460474e625abb6d9085520331e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:06:34', 'some book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'format', 'book', 969085473, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'genre', 1, 'book', 969085473, 'book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'author', 1, 'smith', 969085473, 'Smith')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:34', 'title', 1, 'some book', 969085473, 'Some Book')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 17:06:34', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085473, 'f139bb460474e625abb6d9085520331e')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084874
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:34', NULL, 969084874, 'BorrowDirect', 'queued', '2015-02-24 17:06:34')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:34' WHERE `dispatched_services`.`id` = 4428[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084874 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085473)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085473)[0m
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084874) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084874)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.4ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084874 AND `dispatched_services`.`id` = 4428 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:34', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084874, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:34' WHERE `dispatched_services`.`id` = 4428[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084874 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085473 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085473)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (9.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084874 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084874 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.5ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085473
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084874
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 20.8ms | ActiveRecord: 129.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 12:06:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '47bfddebed205d3202cc796fcb55386e' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:06:35', 'foo')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'format', 'journal', 969085474, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'genre', 1, 'article', 969085474, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'title', 1, 'foo', 969085474, 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'author', 1, 'bar', 969085474, 'bar')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 17:06:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085474, '47bfddebed205d3202cc796fcb55386e')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084875
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:35', NULL, 969084875, 'BorrowDirect', 'queued', '2015-02-24 17:06:35')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4429[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084875 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085474)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085474)[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084875) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084875)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084875 AND `dispatched_services`.`id` = 4429 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4429
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084875 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085474 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085474)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084875 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084875 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085474[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084875[0m
[1m[35m (14.7ms)[0m COMMIT
Completed 200 OK in 209ms (Views: 16.8ms | ActiveRecord: 119.6ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6bdc12ebbfa650677127c5c3e6965700' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 17:06:35', 'foo')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'format', 'book', 969085475, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'genre', 1, 'book', 969085475, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'title', 1, 'foo', 969085475, 'foo')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (3.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 17:06:35', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085475, '6bdc12ebbfa650677127c5c3e6965700')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084876 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:35', NULL, 969084876, 'BorrowDirect', 'failed_fatal', '2015-02-24 17:06:35')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4430
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084876" for 127.0.0.1 at 2015-02-24 12:06:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084876"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084876 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085475 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085475)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084876
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084876
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084876 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084876 [["request_id", 969084876]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085475 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085475)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084876 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084876 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085475[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084876[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 18.5ms | ActiveRecord: 46.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f38535a0b46daabf7ce85721042e804d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:35', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'format', 'journal', 969085476, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'isbn', 1, '9789810743734', 969085476, '9789810743734')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:35', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085476, 'f38535a0b46daabf7ce85721042e804d')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084877[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:35', NULL, 969084877, 'BorrowDirect', 'queued', '2015-02-24 17:06:35')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4431
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085476)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084877) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084877)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`id` = 4431 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:35', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084877, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:35', 'Choose your delivery location', 969084877, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4431[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085476 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084877 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085476[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084877[0m
[1m[35m (14.4ms)[0m COMMIT
Completed 200 OK in 257ms (Views: 25.8ms | ActiveRecord: 115.4ms)
Started GET "/borrow_direct/BorrowDirect/969084877?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:06:35 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084877"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084877 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4431[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:35', 969084877, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085476 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084877&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 54ms (ActiveRecord: 39.0ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 17:06:35' WHERE `dispatched_services`.`id` = 4431
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016543[0m
[1m[35m (14.8ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084877&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A35-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:06:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084877", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:06:35-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085476 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084877[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084877 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877[0m [["request_id", 969084877]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085476 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085476)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084877 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084877 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085476
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084877
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 78ms (Views: 21.5ms | ActiveRecord: 47.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 12:06:35 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30c63302b6ededa560386d16c307386a' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:35', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'format', 'journal', 969085477, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:35', 'isbn', 1, '0109836413', 969085477, '0109836413')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 17:06:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085477, '30c63302b6ededa560386d16c307386a')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084878
[1m[36m (53.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:36', NULL, 969084878, 'BorrowDirect', 'queued', '2015-02-24 17:06:36')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4432[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084878 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085477)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085477)[0m
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084878) ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084878)[0m
[1m[35mDispatchedService Load (2.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084878 AND `dispatched_services`.`id` = 4432 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084878, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:36', 'This item is not currently available from BorrowDirect', 969084878, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4432
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084878 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085477 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085477)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084878 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084878 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085477[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084878[0m
[1m[35m (15.3ms)[0m COMMIT
Completed 200 OK in 299ms (Views: 20.4ms | ActiveRecord: 159.3ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '242000ae34377b2594d2495432824389' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:36', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:36', 'format', 'journal', 969085478, 'journal')
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:36', 'isbn', 1, '9789810743734', 969085478, '9789810743734')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085478, '242000ae34377b2594d2495432824389')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084879[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:36', NULL, 969084879, 'BorrowDirect', 'queued', '2015-02-24 17:06:36')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4433
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085478)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084879) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084879)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`id` = 4433 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084879, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:36', 'Choose your delivery location', 969084879, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4433[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085478 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084879 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085478[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084879[0m
[1m[35m (16.2ms)[0m COMMIT
Completed 200 OK in 272ms (Views: 21.9ms | ActiveRecord: 124.2ms)
Started GET "/borrow_direct/BorrowDirect/969084879?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 12:06:36 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084879"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084879 ORDER BY id ASC
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4433[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:36', 969084879, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085478 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084879&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 49ms (ActiveRecord: 39.9ms)
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4433
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016548[0m
[1m[35m (14.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084879&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A36-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:06:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084879", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:06:36-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085478 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084879[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084879 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879[0m [["request_id", 969084879]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.8ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085478 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085478)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084879 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084879 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085478
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084879
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 75ms (Views: 19.5ms | ActiveRecord: 46.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:36 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2e6bd2df17c01ed29437694051fe6206' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:36', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:36', 'format', 'journal', 969085479, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:36', 'isbn', 1, '9789810743734', 969085479, '9789810743734')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:36', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085479, '2e6bd2df17c01ed29437694051fe6206')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084880
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:36', NULL, 969084880, 'BorrowDirect', 'queued', '2015-02-24 17:06:36')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4434[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084880 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085479)
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085479)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084880) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084880)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084880 AND `dispatched_services`.`id` = 4434 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:36', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084880, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:36', 'Choose your delivery location', 969084880, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:36' WHERE `dispatched_services`.`id` = 4434
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084880 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085479 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085479)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084880 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084880 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084880 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085479
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084880
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 292ms (Views: 21.4ms | ActiveRecord: 114.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 12:06:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '000fd10468d9321f7d8b9749375027f8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 17:06:37', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:37', 'format', 'journal', 969085480, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 17:06:37', 'isbn', 1, '9789810743734', 969085480, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 17:06:37', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085480, '000fd10468d9321f7d8b9749375027f8')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084881
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 17:06:37', NULL, 969084881, 'BorrowDirect', 'queued', '2015-02-24 17:06:37')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 17:06:37' WHERE `dispatched_services`.`id` = 4435[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085480)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480)[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084881) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084881)[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`id` = 4435 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 17:06:37', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084881, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:37', 'Choose your delivery location', 969084881, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 17:06:37' WHERE `dispatched_services`.`id` = 4435
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085480 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084881 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.6ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085480[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084881[0m
[1m[35m (19.0ms)[0m COMMIT
Completed 200 OK in 263ms (Views: 21.5ms | ActiveRecord: 121.8ms)
Started GET "/borrow_direct/BorrowDirect/969084881" for 127.0.0.1 at 2015-02-24 12:06:37 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084881"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084881 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 17:06:37', 969084881, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (2.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085480 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084881&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.1ms)
Started GET "/resolve?umlaut.request_id=969084881&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T12%3A06%3A37-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 12:06:37 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084881", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T12:06:37-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085480 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084881
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 [["request_id", 969084881]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085480 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085480)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084881 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084881 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084881 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085480
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084881
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 82ms (Views: 22.4ms | ActiveRecord: 50.9ms)
[1m[36mActiveRecord::SchemaMigration Load (1.4ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35m (0.7ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.8ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (2.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ff37d0953e30ad8aec324b839fe1c33' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:37:59', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:37:59', 'format', 'journal', 969085481, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:37:59', 'title', 1, 'title', 969085481, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:37:59', 'author', 1, 'au', 969085481, 'au')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:37:59', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085481, '0ff37d0953e30ad8aec324b839fe1c33')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:37:59', 969084882, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:37:59', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084882, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (4.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084882 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.8ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:00', NULL, 969084882, 'test_bd', 'successful', '2015-02-24 21:38:00')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:00' WHERE `dispatched_services`.`id` = 4436[0m
[1m[35m (23.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084882[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084882 ORDER BY id ASC
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:00 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c479910f28d5c8fa6225cbeabb48b6d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:00', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:00', 'format', 'journal', 969085482, 'journal')
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:00', 'isbn', 1, '9789810743734', 969085482, '9789810743734')[0m
[1m[35m (22.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:00', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085482, '9c479910f28d5c8fa6225cbeabb48b6d')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084883[0m
[1m[35m (17.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:00', NULL, 969084883, 'test_bd', 'queued', '2015-02-24 21:38:00')[0m
[1m[35m (21.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:00' WHERE `dispatched_services`.`id` = 4437
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084883 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085482)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085482)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084883) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084883)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (33.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084883 AND `dispatched_services`.`id` = 4437 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:00', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084883, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.4s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 21:38:00' WHERE `dispatched_services`.`id` = 4437
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084883 LIMIT 1
[1m[36mDispatchedService Load (10.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085482 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085482)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084883 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084883 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (73.4ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085482
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084883
[1m[36m (36.1ms)[0m [1mCOMMIT[0m
Completed 200 OK in 1042ms (Views: 300.8ms | ActiveRecord: 158.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 16:38:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3ee6c25d1d0b9011e583dacf7d7e86a' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:01', 'some book')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'format', 'book', 969085483, 'book')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'genre', 1, 'book', 969085483, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'author', 1, 'smith', 969085483, 'Smith')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'title', 1, 'some book', 969085483, 'Some Book')
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 21:38:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085483, 'e3ee6c25d1d0b9011e583dacf7d7e86a')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084884
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:01', NULL, 969084884, 'BorrowDirect', 'queued', '2015-02-24 21:38:01')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4438[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084884 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085483)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085483)[0m
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084884) ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084884)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084884 AND `dispatched_services`.`id` = 4438 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:01', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084884, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4438[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084884 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085483 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085483)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084884 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084884 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085483
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084884
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 280ms (Views: 18.9ms | ActiveRecord: 133.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 16:38:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfce2bca95884755cd2de819e9eb2504' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:01', 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'format', 'journal', 969085484, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'genre', 1, 'article', 969085484, 'article')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'title', 1, 'foo', 969085484, 'foo')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'author', 1, 'bar', 969085484, 'bar')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 21:38:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085484, 'dfce2bca95884755cd2de819e9eb2504')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084885
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:01', NULL, 969084885, 'BorrowDirect', 'queued', '2015-02-24 21:38:01')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4439[0m
[1m[35m (21.4ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084885 LIMIT 1[0m
[1m[35mReferent Load (1.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085484)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085484)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084885) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084885)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (16.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084885 AND `dispatched_services`.`id` = 4439 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4439
[1m[36m (24.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084885 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085484 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085484)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084885 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084885 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085484[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (1.3ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084885[0m
[1m[35m (28.6ms)[0m COMMIT
Completed 200 OK in 243ms (Views: 19.0ms | ActiveRecord: 141.1ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1985fe13eb78e29ac5927cbcd0bb959f' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:01', 'foo')[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'format', 'book', 969085485, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'genre', 1, 'book', 969085485, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'title', 1, 'foo', 969085485, 'foo')
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 21:38:01', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085485, '1985fe13eb78e29ac5927cbcd0bb959f')[0m
[1m[35m (23.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084886 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:01', NULL, 969084886, 'BorrowDirect', 'failed_fatal', '2015-02-24 21:38:01')[0m
[1m[35m (27.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:01' WHERE `dispatched_services`.`id` = 4440
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084886" for 127.0.0.1 at 2015-02-24 16:38:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084886"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084886 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085485 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085485)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084886
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084886
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084886 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084886 [["request_id", 969084886]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085485 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085485)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084886 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084886 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085485[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084886[0m
[1m[35m (15.1ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 17.9ms | ActiveRecord: 54.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:01 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '87f85dadf061c261521ac42462c69f9a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (1.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:01', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'format', 'journal', 969085486, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:01', 'isbn', 1, '9789810743734', 969085486, '9789810743734')[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:01', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085486, '87f85dadf061c261521ac42462c69f9a')
[1m[36m (21.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084887[0m
[1m[35m (19.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:02', NULL, 969084887, 'BorrowDirect', 'queued', '2015-02-24 21:38:02')[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4441
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085486)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486)
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084887) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084887)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`id` = 4441 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084887, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:02', 'Choose your delivery location', 969084887, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (20.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4441[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085486 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084887 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (43.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (45.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (46.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085486[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084887[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 345ms (Views: 62.8ms | ActiveRecord: 140.8ms)
Started GET "/borrow_direct/BorrowDirect/969084887?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:38:02 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084887"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084887 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4441[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:02', 969084887, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085486 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084887&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4441
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016560[0m
[1m[35m (15.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084887&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A02-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:38:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084887", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:38:02-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085486 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084887[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084887 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887[0m [["request_id", 969084887]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085486 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085486)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084887 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084887 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085486
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084887
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 74ms (Views: 20.0ms | ActiveRecord: 45.9ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 16:38:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e97ea33524386f783a18833ef1ae8107' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:02', '0109836413')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:02', 'format', 'journal', 969085487, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:02', 'isbn', 1, '0109836413', 969085487, '0109836413')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:38:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085487, 'e97ea33524386f783a18833ef1ae8107')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084888
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:02', NULL, 969084888, 'BorrowDirect', 'queued', '2015-02-24 21:38:02')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4442[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084888 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085487)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085487)[0m
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084888) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084888)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (17.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084888 AND `dispatched_services`.`id` = 4442 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084888, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:02', 'This item is not currently available from BorrowDirect', 969084888, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4442
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084888 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085487 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085487)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084888 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084888 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085487[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084888[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 260ms (Views: 19.0ms | ActiveRecord: 121.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:02 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '325275bf60d30ad17d16ebb2f9a4ed80' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:02', '9789810743734')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:02', 'format', 'journal', 969085488, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:02', 'isbn', 1, '9789810743734', 969085488, '9789810743734')[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:02', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085488, '325275bf60d30ad17d16ebb2f9a4ed80')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084889[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:02', NULL, 969084889, 'BorrowDirect', 'queued', '2015-02-24 21:38:02')[0m
[1m[35m (27.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4443
[1m[36m (20.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085488)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488)
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084889) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084889)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`id` = 4443 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:02', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084889, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:02', 'Choose your delivery location', 969084889, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:02' WHERE `dispatched_services`.`id` = 4443[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085488 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084889 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.4ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.6ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085488[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084889[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 326ms (Views: 25.0ms | ActiveRecord: 143.5ms)
Started GET "/borrow_direct/BorrowDirect/969084889?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:38:03 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084889"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084889 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4443[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:03', 969084889, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085488 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084889&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 56ms (ActiveRecord: 40.3ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4443
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016565[0m
[1m[35m (14.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084889&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:38:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084889", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:38:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085488 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084889[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084889 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889[0m [["request_id", 969084889]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085488 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085488)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084889 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084889 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085488
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084889
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Completed 200 OK in 72ms (Views: 17.1ms | ActiveRecord: 46.3ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dce4fc3bc2aff07799d93eae8dd9d565' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:03', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'format', 'journal', 969085489, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'isbn', 1, '9789810743734', 969085489, '9789810743734')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085489, 'dce4fc3bc2aff07799d93eae8dd9d565')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084890
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:03', NULL, 969084890, 'BorrowDirect', 'queued', '2015-02-24 21:38:03')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4444[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084890 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085489)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085489)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084890) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084890)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084890 AND `dispatched_services`.`id` = 4444 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084890, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:03', 'Choose your delivery location', 969084890, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4444
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084890 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085489 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085489)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084890 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084890 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084890 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085489
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084890
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 265ms (Views: 21.3ms | ActiveRecord: 120.2ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:38:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dd475f9c68dd753cbf426e3c0b76f65f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:03', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'format', 'journal', 969085490, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'isbn', 1, '9789810743734', 969085490, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:03', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085490, 'dd475f9c68dd753cbf426e3c0b76f65f')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084891
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:03', NULL, 969084891, 'BorrowDirect', 'queued', '2015-02-24 21:38:03')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4445[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085490)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490)[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084891) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084891)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`id` = 4445 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:03', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084891, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:03', 'Choose your delivery location', 969084891, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:38:03' WHERE `dispatched_services`.`id` = 4445
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085490 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084891 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085490
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084891
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 290ms (Views: 21.8ms | ActiveRecord: 115.4ms)
Started GET "/borrow_direct/BorrowDirect/969084891" for 127.0.0.1 at 2015-02-24 16:38:03 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084891"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084891 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:03', 969084891, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085490 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084891&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.0ms)
Started GET "/resolve?umlaut.request_id=969084891&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A03-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:38:03 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084891", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:38:03-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085490 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084891[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (0.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891[0m [["request_id", 969084891]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085490 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085490)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084891 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084891 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084891 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085490[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084891[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 75ms (Views: 21.9ms | ActiveRecord: 45.2ms)
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ff20b5512cd805fa3e7bdd6e042dd48f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:03', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'format', 'journal', 969085491, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:03', 'isbn', 1, '9789810743734', 969085491, '9789810743734')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:03', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085491, 'ff20b5512cd805fa3e7bdd6e042dd48f')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084892 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084892, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 'Choose your delivery location', 969084892, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084892 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084892, 'test_bd', 'successful', '2015-02-24 21:38:04')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4446
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084892
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54bb20207fd8f7f9d5d039f36fb627c4' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:04', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085492, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'isbn', 1, '0109836413', 969085492, '0109836413')[0m
[1m[35m (13.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085492, '54bb20207fd8f7f9d5d039f36fb627c4')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084893 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084893, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 'This item is not currently available from BorrowDirect', 969084893, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084893 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084893, 'test_bd', 'successful', '2015-02-24 21:38:04')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4447
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084893
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5ed04434d2114c39f0fd447977171179' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:04', '000000000')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085493, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'isbn', 1, '000000000', 969085493, '000000000')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085493, '5ed04434d2114c39f0fd447977171179')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084894 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084894, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 'This item is not currently available from BorrowDirect', 969084894, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084894 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084894, 'test_bd', 'successful', '2015-02-24 21:38:04')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4448
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084894
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54ad7aa86771c7b61ddfefd1d182b9b5' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:04', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085494, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'isbn', 1, '9789810743734', 969085494, '9789810743734')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085494, '54ad7aa86771c7b61ddfefd1d182b9b5')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084895 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084895, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084895 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084895, 'test_bd', 'failed_temporary', '2015-02-24 21:38:04')
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4449[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084895[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5cea97bdc5c9c0937aeb957815d214e2' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:04', '9789810743734')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085495, 'journal')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'isbn', 1, '9789810743734', 969085495, '9789810743734')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085495, '5cea97bdc5c9c0937aeb957815d214e2')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084896 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084896, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084896 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084896, 'test_bd', 'successful', '2015-02-24 21:38:04')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4450
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084896
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e253f40685e02c48340bb1d5bce17df0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:04', 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085496, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'title', 1, 'title', 969085496, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'author', 1, 'au', 969085496, 'au')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085496, 'e253f40685e02c48340bb1d5bce17df0')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 969084897, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084897 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084897, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084897 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084897, 'test_bd', 'successful', '2015-02-24 21:38:04')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4451[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084897[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '96806532610f961df3e758548030aa9a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:04', 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085497, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'title', 1, 'title', 969085497, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'author', 1, 'au', 969085497, 'au')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085497, '96806532610f961df3e758548030aa9a')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 969084898, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084898 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:04', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084898, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084898 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084898, 'test_bd', 'successful', '2015-02-24 21:38:04')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4452
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084898
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17e6b633391801f9e7a8d0abd884bf4b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:04', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085498, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'title', 1, 'title', 969085498, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'author', 1, 'au', 969085498, 'au')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:38:04', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085498, '17e6b633391801f9e7a8d0abd884bf4b')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:04', 969084899, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084899 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084899 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:04', NULL, 969084899, 'test_bd', 'successful', '2015-02-24 21:38:04')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:04' WHERE `dispatched_services`.`id` = 4453
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084899
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7614f7a39ebdf9f9db9196bae9190932' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:38:04', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'format', 'journal', 969085499, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085499, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:04', 'aulast', 1, 'grimes', 969085499, 'Grimes')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085499, '7614f7a39ebdf9f9db9196bae9190932')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084900, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084900 ORDER BY id ASC
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8a5dcc6e1d614a34a827505d7458fdf7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 21:38:05', '1072-7825', 'the atlantic monthly', '273', '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085500, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'auinit', 1, 'rd', 969085500, 'RD')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'aulast', 1, 'kaplan', 969085500, 'Kaplan')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'atitle', 1, 'the coming anarchy', 969085500, 'The coming anarchy')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'title', 1, 'the atlantic monthly', 969085500, 'The Atlantic monthly')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'volume', 1, '273', 969085500, '273')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'issue', 1, '2', 969085500, '2')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'date', 1, '1994', 969085500, '1994')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'spage', 1, '44', 969085500, '44')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'issn', 1, '1072-7825', 969085500, '1072-7825')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085500, 'info:sid/google', '8a5dcc6e1d614a34a827505d7458fdf7')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084901 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:05', NULL, 969084901, 'test_bd', 'successful', '2015-02-24 21:38:05')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4454[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084901[0m
[1m[35mServiceResponse Exists (2.0ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084901 LIMIT 1
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd9d14835bd4fe8081fb9cb0e112ed1ae' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 21:38:05', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'book', 969085501, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'auinit', 1, 'eh', 969085501, 'EH')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'aulast', 1, 'lenneberg', 969085501, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'title', 1, 'biological foundations of language', 969085501, 'Biological foundations of language')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'genre', 1, 'book', 969085501, 'book')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'date', 1, '1967', 969085501, '1967')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085501, 'info:sid/google', 'd9d14835bd4fe8081fb9cb0e112ed1ae')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084902 ORDER BY id ASC
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:38:05', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084902, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084902 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:05', NULL, 969084902, 'test_bd', 'successful', '2015-02-24 21:38:05')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4455[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084902[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.1ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6df62164e6ffa19df27419ef9f82f4ff' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085502, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085502, '121212')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085502, '6df62164e6ffa19df27419ef9f82f4ff')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084903"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084903 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (3.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084903 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969084903
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084903, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084903\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085502 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085502)
Redirected to http://test.host/resolve?umlaut.request_id=969084903&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 24.2ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '07b6c222660ff598765f35c4d90c08a7' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085503, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085503, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085503, '07b6c222660ff598765f35c4d90c08a7')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084904, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084904"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084904 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084904 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016587
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084904, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016587\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085503 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085503)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084904&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 24.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0b02bd87e84431d7048ce5c3076132ef' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085504, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085504, '121212')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085504, '0b02bd87e84431d7048ce5c3076132ef')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084905, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084905"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084905 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084905 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084905 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:05', NULL, 969084905, 'BorrowDirect', 'in_progress', '2015-02-24 21:38:05')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4456[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084905, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085504 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085504)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084905&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 68ms (ActiveRecord: 58.8ms)
[1m[35mDispatchedService Load (2.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084905
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084905 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084905 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4456
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016590[0m
[1m[35m (14.9ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd7df2eb304aad02136e4e7e3619e07aa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085505, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085505, '121212')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085505, 'd7df2eb304aad02136e4e7e3619e07aa')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084906, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084906"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084906 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084906 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084906 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:05', NULL, 969084906, 'BorrowDirect', 'in_progress', '2015-02-24 21:38:05')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:05' WHERE `dispatched_services`.`id` = 4457
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084906, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085505 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085505)
Redirected to http://test.host/resolve?umlaut.request_id=969084906&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 72ms (ActiveRecord: 58.7ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '725a434049c828aef0c604d84d99a2fa' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085506, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085506, '121212')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085506, '725a434049c828aef0c604d84d99a2fa')
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084907, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084907"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084907 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084907 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084907, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085506 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085506)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084907&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A05-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 24.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '83f90c8ff13f9d7d2e8b529431ce820b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:05', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'format', 'journal', 969085507, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:05', 'isbn', 1, '121212', 969085507, '121212')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:05', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085507, '83f90c8ff13f9d7d2e8b529431ce820b')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:05', 969084908, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084908"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084908 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084908 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084908 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:06', NULL, 969084908, 'BorrowDirect', 'in_progress', '2015-02-24 21:38:06')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:06' WHERE `dispatched_services`.`id` = 4458[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:06', 969084908, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085507 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085507)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084908&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 70ms (ActiveRecord: 58.4ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04adc820b10b9b33ab8de467c20431e3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084908 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36m (2.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.4ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:06', '121212')
[1m[36mSQL (1.9ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:38:06' WHERE `dispatched_services`.`id` = 4458[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:06', 'format', 'journal', 969085508, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:06', 'isbn', 1, '121212', 969085508, '121212')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016596
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:06', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085508, '04adc820b10b9b33ab8de467c20431e3')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084909"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084909 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084909 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:06', 969084909, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085508 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085508)
Redirected to http://test.host/resolve?umlaut.request_id=969084909&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A06-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 24.0ms)
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e2f618a94aab6dd136aa7a0a386e8b2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:42', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:42', 'format', 'journal', 969085509, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:42', 'isbn', 1, '121212', 969085509, '121212')
[1m[36m (23.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085509, '4e2f618a94aab6dd136aa7a0a386e8b2')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:42', 969084910, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084910"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084910 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084910 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084910 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:38:42', NULL, 969084910, 'BorrowDirect', 'in_progress', '2015-02-24 21:38:42')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:38:42' WHERE `dispatched_services`.`id` = 4459[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:42', 969084910, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085509 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085509)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084910&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 108ms (ActiveRecord: 69.3ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd31ec99988f89d93f1158933cd89a035' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:38:42', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:42', 'format', 'journal', 969085510, 'journal')[0m
[1m[35mSQL (4.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:38:42', 'isbn', 1, '121212', 969085510, '121212')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:38:42', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085510, 'd31ec99988f89d93f1158933cd89a035')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:42', 969084911, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (15.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084911"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084911 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084911 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:38:42', 969084911, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (21.6ms)[0m COMMIT
[1m[36mReferent Load (1.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085510 LIMIT 1[0m
[1m[35mReferentValue Load (1.6ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085510)
Redirected to http://test.host/resolve?umlaut.request_id=969084911&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A38%3A42-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 39ms (ActiveRecord: 32.8ms)
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36mActiveRecord::SchemaMigration Load (0.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
--------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url2
--------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e3575d56cab2aa1cbb9558efd255394d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:40:08', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:40:08', 'format', 'journal', 969085511, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:40:08', 'isbn', 1, '121212', 969085511, '121212')
[1m[36m (22.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:40:08', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085511, 'e3575d56cab2aa1cbb9558efd255394d')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:40:08', 969084912, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084912"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084912 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084912 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084912 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:40:08', NULL, 969084912, 'BorrowDirect', 'in_progress', '2015-02-24 21:40:08')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:40:08' WHERE `dispatched_services`.`id` = 4460[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:40:08', 969084912, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085511 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085511)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084912&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A40%3A08-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 96ms (ActiveRecord: 64.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
--------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url2
--------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c671e1089e5faef88b580d3d857c76a5' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:40:33', '121212')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:40:33', 'format', 'journal', 969085512, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:40:33', 'isbn', 1, '121212', 969085512, '121212')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:40:33', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085512, 'c671e1089e5faef88b580d3d857c76a5')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:40:33', 969084913, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084913"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084913 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084913 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084913 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:40:33', NULL, 969084913, 'BorrowDirect', 'in_progress', '2015-02-24 21:40:33')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:40:33' WHERE `dispatched_services`.`id` = 4461[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:40:33', 969084913, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085512 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085512)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: true
Rendered text template (0.0ms)
Completed 403 Forbidden in 34770ms (Views: 42.5ms | ActiveRecord: 63.3ms)
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
--------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url2
--------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '41e40ff11f435d0e18282a708fcfdd82' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:41:13', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:41:13', 'format', 'journal', 969085513, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:41:13', 'isbn', 1, '121212', 969085513, '121212')
[1m[36m (22.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:41:13', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085513, '41e40ff11f435d0e18282a708fcfdd82')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:41:13', 969084914, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084914"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084914 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084914 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084914 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:41:13', NULL, 969084914, 'BorrowDirect', 'in_progress', '2015-02-24 21:41:13')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:41:13' WHERE `dispatched_services`.`id` = 4462[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:41:13', 969084914, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085513 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085513)[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
--------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url2
--------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8b37659dc2edb7656e32b52a62c0478' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:41:28', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:41:28', 'format', 'journal', 969085514, 'journal')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:41:28', 'isbn', 1, '121212', 969085514, '121212')
[1m[36m (21.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:41:28', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085514, 'c8b37659dc2edb7656e32b52a62c0478')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:41:28', 969084915, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084915"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084915 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084915 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084915 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:41:28', NULL, 969084915, 'BorrowDirect', 'in_progress', '2015-02-24 21:41:28')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:41:28' WHERE `dispatched_services`.`id` = 4463[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:41:28', 969084915, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085514 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085514)[0m
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30b37bb140f63fd2af99a0f434b2d893' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 21:42:21', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'format', 'journal', 969085515, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'auinit', 1, 'rd', 969085515, 'RD')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'aulast', 1, 'kaplan', 969085515, 'Kaplan')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'atitle', 1, 'the coming anarchy', 969085515, 'The coming anarchy')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'title', 1, 'the atlantic monthly', 969085515, 'The Atlantic monthly')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'volume', 1, '273', 969085515, '273')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'issue', 1, '2', 969085515, '2')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'date', 1, '1994', 969085515, '1994')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'spage', 1, '44', 969085515, '44')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'issn', 1, '1072-7825', 969085515, '1072-7825')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 21:42:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085515, 'info:sid/google', '30b37bb140f63fd2af99a0f434b2d893')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084916 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:21', NULL, 969084916, 'test_bd', 'successful', '2015-02-24 21:42:21')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:21' WHERE `dispatched_services`.`id` = 4464
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084916
[1m[36mServiceResponse Exists (2.1ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084916 LIMIT 1[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ea6e8c52de25c4ec5976cd1a46e2b309' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:21', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'format', 'journal', 969085516, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085516, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'aulast', 1, 'grimes', 969085516, 'Grimes')[0m
[1m[35m (27.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 21:42:21', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085516, 'ea6e8c52de25c4ec5976cd1a46e2b309')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:21', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084917, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')[0m
[1m[35m (27.5ms)[0m COMMIT
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084917 ORDER BY id ASC[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '146b9eb2d4f3dd84e5635ec462e08340' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 21:42:21', 'biological foundations of language', '1967')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'format', 'book', 969085517, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'auinit', 1, 'eh', 969085517, 'EH')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'aulast', 1, 'lenneberg', 969085517, 'Lenneberg')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'title', 1, 'biological foundations of language', 969085517, 'Biological foundations of language')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'genre', 1, 'book', 969085517, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:21', 'date', 1, '1967', 969085517, '1967')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085517, 'info:sid/google', '146b9eb2d4f3dd84e5635ec462e08340')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mServiceResponse Load (4.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084918 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084918, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084918 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084918, 'test_bd', 'successful', '2015-02-24 21:42:22')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4465
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084918
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9c7afaa305926410aea159eede0a52dd' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (32.5ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '000000000')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085518, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '000000000', 969085518, '000000000')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085518, '9c7afaa305926410aea159eede0a52dd')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084919 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084919, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:22', 'This item is not currently available from BorrowDirect', 969084919, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (17.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084919 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084919, 'test_bd', 'successful', '2015-02-24 21:42:22')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4466
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084919
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18475eafd7db7b1853b61f11366fc441' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085519, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '9789810743734', 969085519, '9789810743734')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085519, '18475eafd7db7b1853b61f11366fc441')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084920 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084920, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:22', 'Choose your delivery location', 969084920, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')[0m
[1m[35m (27.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084920 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084920, 'test_bd', 'successful', '2015-02-24 21:42:22')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4467
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084920
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a0cecb11dfbb87919e43cd145807758e' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '0109836413')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085520, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '0109836413', 969085520, '0109836413')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085520, 'a0cecb11dfbb87919e43cd145807758e')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084921 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084921, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:22', 'This item is not currently available from BorrowDirect', 969084921, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084921 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084921, 'test_bd', 'successful', '2015-02-24 21:42:22')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4468
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084921
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4bd62106f775ad9683c0104c422877ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '9789810743734')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085521, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '9789810743734', 969085521, '9789810743734')[0m
[1m[35m (19.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.9ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085521, '4bd62106f775ad9683c0104c422877ff')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084922 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084922, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084922 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084922, 'test_bd', 'failed_temporary', '2015-02-24 21:42:22')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4469[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084922[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '348d82b9546043855e4e13b44d9c95d8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085522, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '9789810743734', 969085522, '9789810743734')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:22', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085522, '348d82b9546043855e4e13b44d9c95d8')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084923 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:22', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084923, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084923 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084923, 'test_bd', 'successful', '2015-02-24 21:42:22')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4470
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084923
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:22 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '31bcad8d21fc3e736c7c6203eb563613' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:22', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'format', 'journal', 969085523, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:22', 'isbn', 1, '9789810743734', 969085523, '9789810743734')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:22', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085523, '31bcad8d21fc3e736c7c6203eb563613')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084924[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:22', NULL, 969084924, 'test_bd', 'queued', '2015-02-24 21:42:22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:22' WHERE `dispatched_services`.`id` = 4471
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084924 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085523)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085523)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084924) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084924)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084924 AND `dispatched_services`.`id` = 4471 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084924, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4471
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084924 LIMIT 1
[1m[36mDispatchedService Load (7.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (3.5ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085523 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085523)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084924 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084924 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (63.0ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085523[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (9.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.7ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084924[0m
[1m[35m (15.0ms)[0m COMMIT
Completed 200 OK in 435ms (Views: 133.0ms | ActiveRecord: 116.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 16:42:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '418b55bb36b96e2657093f8be6564369' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:23', 'some book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'format', 'book', 969085524, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'genre', 1, 'book', 969085524, 'book')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'author', 1, 'smith', 969085524, 'Smith')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'title', 1, 'some book', 969085524, 'Some Book')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 21:42:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085524, '418b55bb36b96e2657093f8be6564369')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084925[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:23', NULL, 969084925, 'BorrowDirect', 'queued', '2015-02-24 21:42:23')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4472
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084925 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085524)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085524)
[1m[36mServiceResponse Load (4.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084925) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084925)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084925 AND `dispatched_services`.`id` = 4472 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:23', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084925, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4472
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084925 LIMIT 1
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085524 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085524)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084925 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084925 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085524[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084925[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 234ms (Views: 18.4ms | ActiveRecord: 126.5ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 16:42:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4986fbf72760f6162fa589504f6fa34' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:23', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'format', 'journal', 969085525, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'genre', 1, 'article', 969085525, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'title', 1, 'foo', 969085525, 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'author', 1, 'bar', 969085525, 'bar')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 21:42:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085525, 'a4986fbf72760f6162fa589504f6fa34')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084926[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:23', NULL, 969084926, 'BorrowDirect', 'queued', '2015-02-24 21:42:23')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4473
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084926 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085525)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085525)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084926) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084926)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084926 AND `dispatched_services`.`id` = 4473 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4473[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084926 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085525 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085525)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084926 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084926 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085525
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084926
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 238ms (Views: 18.0ms | ActiveRecord: 115.9ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '476ec1c923c94688a1c711494ba4b0d6' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:23', 'foo')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'format', 'book', 969085526, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'genre', 1, 'book', 969085526, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'title', 1, 'foo', 969085526, 'foo')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 21:42:23', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085526, '476ec1c923c94688a1c711494ba4b0d6')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084927 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:23', NULL, 969084927, 'BorrowDirect', 'failed_fatal', '2015-02-24 21:42:23')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:23' WHERE `dispatched_services`.`id` = 4474[0m
[1m[35m (18.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084927" for 127.0.0.1 at 2015-02-24 16:42:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084927"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084927 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085526 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085526)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084927[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084927[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084927 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084927[0m [["request_id", 969084927]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[35mReferent Load (0.7ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085526 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085526)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (4.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084927 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084927 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085526
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084927
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 75ms (Views: 17.6ms | ActiveRecord: 50.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:23 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4250538ad698d8a1551e33ae6b7d9dc3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:23', '9789810743734')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'format', 'journal', 969085527, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:23', 'isbn', 1, '9789810743734', 969085527, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:23', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085527, '4250538ad698d8a1551e33ae6b7d9dc3')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084928
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:24', NULL, 969084928, 'BorrowDirect', 'queued', '2015-02-24 21:42:24')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4475[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085527)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527)[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084928) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084928)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`id` = 4475 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084928, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:24', 'Choose your delivery location', 969084928, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4475
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085527 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084928 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085527
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084928
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 258ms (Views: 24.2ms | ActiveRecord: 114.5ms)
Started GET "/borrow_direct/BorrowDirect/969084928?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:42:24 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084928"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084928 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4475
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:24', 969084928, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085527 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084928&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 91ms (ActiveRecord: 38.0ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4475[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016624
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084928&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A24-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:42:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084928", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:42:24-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085527 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084928
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084928 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 [["request_id", 969084928]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085527 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085527)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084928 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084928 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.7ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085527[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084928[0m
[1m[35m (14.5ms)[0m COMMIT
Completed 200 OK in 74ms (Views: 19.8ms | ActiveRecord: 46.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 16:42:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '75cfbca8dfb7ca2c7524cf680f872ade' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:24', '0109836413')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:24', 'format', 'journal', 969085528, 'journal')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:24', 'isbn', 1, '0109836413', 969085528, '0109836413')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:42:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085528, '75cfbca8dfb7ca2c7524cf680f872ade')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084929[0m
[1m[35m (18.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:24', NULL, 969084929, 'BorrowDirect', 'queued', '2015-02-24 21:42:24')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4476
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084929 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085528)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085528)
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084929) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084929)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084929 AND `dispatched_services`.`id` = 4476 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084929, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:24', 'This item is not currently available from BorrowDirect', 969084929, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4476[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084929 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085528 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085528)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084929 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084929 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085528
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084929
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 249ms (Views: 18.5ms | ActiveRecord: 118.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:24 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '059fe702a841e2539ca3fd9f6b3fb3df' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:24', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:24', 'format', 'journal', 969085529, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:24', 'isbn', 1, '9789810743734', 969085529, '9789810743734')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:24', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085529, '059fe702a841e2539ca3fd9f6b3fb3df')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084930
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:24', NULL, 969084930, 'BorrowDirect', 'queued', '2015-02-24 21:42:24')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4477[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085529)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529)[0m
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084930) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084930)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`id` = 4477 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:24', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084930, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:24', 'Choose your delivery location', 969084930, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4477
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085529 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084930 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085529
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084930
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Completed 200 OK in 250ms (Views: 21.4ms | ActiveRecord: 115.5ms)
Started GET "/borrow_direct/BorrowDirect/969084930?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:42:24 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084930"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084930 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:42:24' WHERE `dispatched_services`.`id` = 4477
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 969084930, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085529 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084930&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 91ms (ActiveRecord: 41.8ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4477[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016629
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084930&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:42:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084930", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:42:25-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085529 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084930
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084930 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 [["request_id", 969084930]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085529 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085529)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084930 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084930 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085529[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084930[0m
[1m[35m (14.6ms)[0m COMMIT
Completed 200 OK in 70ms (Views: 16.7ms | ActiveRecord: 45.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2720fcd48436a1e39ccb54b2dad88b8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:25', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'format', 'journal', 969085530, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'isbn', 1, '9789810743734', 969085530, '9789810743734')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085530, 'e2720fcd48436a1e39ccb54b2dad88b8')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084931[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:25', NULL, 969084931, 'BorrowDirect', 'queued', '2015-02-24 21:42:25')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4478
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084931 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085530)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085530)
[1m[36mServiceResponse Load (4.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084931) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084931)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084931 AND `dispatched_services`.`id` = 4478 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084931, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 'Choose your delivery location', 969084931, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4478[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084931 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085530 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085530)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (5.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084931 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084931 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084931 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085530[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084931[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 248ms (Views: 20.5ms | ActiveRecord: 116.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:42:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd01f42428771d11fa8b7769d5c3c0738' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:25', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'format', 'journal', 969085531, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'isbn', 1, '9789810743734', 969085531, '9789810743734')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:42:25', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085531, 'd01f42428771d11fa8b7769d5c3c0738')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084932[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:25', NULL, 969084932, 'BorrowDirect', 'queued', '2015-02-24 21:42:25')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4479
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085531)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084932) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084932)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`id` = 4479 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:25', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084932, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 'Choose your delivery location', 969084932, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:42:25' WHERE `dispatched_services`.`id` = 4479[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085531 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084932 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.3ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.5ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085531[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084932[0m
[1m[35m (40.4ms)[0m COMMIT
Completed 200 OK in 279ms (Views: 23.1ms | ActiveRecord: 142.3ms)
Started GET "/borrow_direct/BorrowDirect/969084932" for 127.0.0.1 at 2015-02-24 16:42:25 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084932"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084932 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 969084932, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085531 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084932&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 27ms (ActiveRecord: 21.0ms)
Started GET "/resolve?umlaut.request_id=969084932&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A25-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:42:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084932", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:42:25-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085531 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084932
[1m[36m (33.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 [["request_id", 969084932]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085531 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085531)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084932 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084932 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084932 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085531
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084932
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 102ms (Views: 21.6ms | ActiveRecord: 72.2ms)
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.7ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '991b10672368956601bf272c4c9ed8d0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:25', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'format', 'journal', 969085532, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:25', 'isbn', 1, '121212', 969085532, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:25', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085532, '991b10672368956601bf272c4c9ed8d0')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084933"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084933 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084933 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 969084933
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:25', 969084933, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084933\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085532 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085532)
Redirected to http://test.host/resolve?umlaut.request_id=969084933&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.4ms)
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1da520a200a9e919f149d73cf9a9797d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085533, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085533, '121212')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085533, '1da520a200a9e919f149d73cf9a9797d')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084934, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084934"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084934 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084934 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016636
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084934, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016636\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085533 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085533)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084934&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.0ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5ef4881963ba21a262c70528338f82ec' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085534, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085534, '121212')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085534, '5ef4881963ba21a262c70528338f82ec')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084935, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084935"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084935 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084935 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084935 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:26', NULL, 969084935, 'BorrowDirect', 'in_progress', '2015-02-24 21:42:26')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4480[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084935, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085534 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085534)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084935&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 67ms (ActiveRecord: 57.6ms)
[1m[35mDispatchedService Load (2.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084935
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084935 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084935 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4480
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016639[0m
[1m[35m (15.0ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '343b7e5bff14e22bad918cff87a117e9' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085535, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085535, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085535, '343b7e5bff14e22bad918cff87a117e9')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084936, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (13.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084936"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084936 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084936 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084936 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:26', NULL, 969084936, 'BorrowDirect', 'in_progress', '2015-02-24 21:42:26')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4481
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084936, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085535 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085535)
Redirected to http://example.org
Completed 302 Found in 71ms (ActiveRecord: 59.5ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1bce0b8b1d6c5ee4e6687be670c91e9d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085536, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085536, '121212')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085536, '1bce0b8b1d6c5ee4e6687be670c91e9d')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084937, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084937"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084937 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084937 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084937, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 26ms (ActiveRecord: 22.0ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '429e5588c43dfac4b00f2b6dc4aa136a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085537, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085537, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085537, '429e5588c43dfac4b00f2b6dc4aa136a')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084938, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084938"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084938 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084938 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084938 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:26', NULL, 969084938, 'BorrowDirect', 'in_progress', '2015-02-24 21:42:26')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4482[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
BorrowDirect: Error placing request: BorrowDirect::HttpError HTTP Error: 502: . Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084938, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084936 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpError\n:message: ! \'HTTP Error: 502: \'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4481[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085537 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085537)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 74ms (Views: 0.3ms | ActiveRecord: 61.3ms)
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (8.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016641[0m
[1m[35m (40.2ms)[0m COMMIT
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2aac22b0a39c46c36edae950f6d4d853' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:42:26', '121212')[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084938 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085538, 'journal')[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (2.5ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'isbn', 1, '121212', 969085538, '121212')[0m
[1m[35mSQL (2.7ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4482
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (16.6ms)[0m [1mCOMMIT[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085538, '2aac22b0a39c46c36edae950f6d4d853')
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016645
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084939"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084939 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084939 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084939, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.5ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085538 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085538)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084939&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A42%3A26-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 35ms (ActiveRecord: 28.7ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f518184ebc367211b83641e123755e01' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:26', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085539, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'title', 1, 'title', 969085539, 'title')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'author', 1, 'au', 969085539, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085539, 'f518184ebc367211b83641e123755e01')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084940, '---\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084940 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084940 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:26', NULL, 969084940, 'test_bd', 'successful', '2015-02-24 21:42:26')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:26' WHERE `dispatched_services`.`id` = 4483[0m
[1m[35m (17.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084940[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4124e402a41026ee3fbb3dc450933a23' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:26', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'format', 'journal', 969085540, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'title', 1, 'title', 969085540, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:26', 'author', 1, 'au', 969085540, 'au')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:42:26', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085540, '4124e402a41026ee3fbb3dc450933a23')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:26', 969084941, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084941 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:26', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084941, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084941 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:27', NULL, 969084941, 'test_bd', 'successful', '2015-02-24 21:42:27')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:27' WHERE `dispatched_services`.`id` = 4484
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084941
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62c66f17805d642c8b9f871ef4da4a57' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:27', 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'format', 'journal', 969085541, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'title', 1, 'title', 969085541, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'author', 1, 'au', 969085541, 'au')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:42:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085541, '62c66f17805d642c8b9f871ef4da4a57')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:27', 969084942, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084942 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084942, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084942 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:27', NULL, 969084942, 'test_bd', 'successful', '2015-02-24 21:42:27')
[1m[36m (17.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:27' WHERE `dispatched_services`.`id` = 4485[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084942[0m
[1m[35m (0.7ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '281909b5a6cff6388d83e537d1e92bbf' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:42:27', 'title')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'format', 'journal', 969085542, 'journal')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'title', 1, 'title', 969085542, 'title')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:42:27', 'author', 1, 'au', 969085542, 'au')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:42:27', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085542, '281909b5a6cff6388d83e537d1e92bbf')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:42:27', 969084943, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:42:27', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084943, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084943 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:42:27', NULL, 969084943, 'test_bd', 'successful', '2015-02-24 21:42:27')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:42:27' WHERE `dispatched_services`.`id` = 4486[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084943[0m
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084943 ORDER BY id ASC
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:14 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b2f49a180ec43d837a027e121259bafe' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:14', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:14', 'format', 'journal', 969085543, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:14', 'isbn', 1, '9789810743734', 969085543, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:14', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085543, 'b2f49a180ec43d837a027e121259bafe')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084944
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:14', NULL, 969084944, 'test_bd', 'queued', '2015-02-24 21:43:14')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:14' WHERE `dispatched_services`.`id` = 4487[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084944 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085543)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085543)[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084944) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084944)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084944 AND `dispatched_services`.`id` = 4487 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084944, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `status` = 'failed_temporary', `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4487[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084944 LIMIT 1[0m
[1m[35mDispatchedService Load (7.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085543 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085543)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (1.8ms)
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084944 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (11.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (2.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084944 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/index.html.erb within layouts/umlaut (64.7ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085543[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084944[0m
[1m[35m (14.3ms)[0m COMMIT
Completed 200 OK in 660ms (Views: 165.2ms | ActiveRecord: 143.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-24 16:43:15 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6660936df732e414fa938d21198dbe6e' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:15', 'some book')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'format', 'book', 969085544, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'genre', 1, 'book', 969085544, 'book')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'author', 1, 'smith', 969085544, 'Smith')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'title', 1, 'some book', 969085544, 'Some Book')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'a03fb1fb17f24f5ea845bf6c4450490b', '2015-02-24 21:43:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085544, '6660936df732e414fa938d21198dbe6e')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084945[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:15', NULL, 969084945, 'BorrowDirect', 'queued', '2015-02-24 21:43:15')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4488
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084945 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085544)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085544)
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084945) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084945)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084945 AND `dispatched_services`.`id` = 4488 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:15', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084945, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4488
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084945 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085544 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085544)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (7.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084945 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084945 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (35.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085544[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (40.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084945[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 274ms (Views: 19.8ms | ActiveRecord: 161.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-24 16:43:15 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd81e0288c62f38c18327decd844917a6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:15', 'foo')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'format', 'journal', 969085545, 'journal')
[1m[36mSQL (5.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'genre', 1, 'article', 969085545, 'article')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'title', 1, 'foo', 969085545, 'foo')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'author', 1, 'bar', 969085545, 'bar')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', 'bc13b80c2923ce2cbe0c8347141587a7', '2015-02-24 21:43:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085545, 'd81e0288c62f38c18327decd844917a6')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084946[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:15', NULL, 969084946, 'BorrowDirect', 'queued', '2015-02-24 21:43:15')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4489
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084946 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085545)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085545)
[1m[36mServiceResponse Load (4.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084946) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084946)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (17.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084946 AND `dispatched_services`.`id` = 4489 AND `dispatched_services`.`status` IN ('queued')
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4489[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084946 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085545 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085545)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (4.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084946 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084946 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085545
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084946
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 211ms (Views: 16.2ms | ActiveRecord: 121.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b3e04b46751bb5e7e75f36c78255d8e1' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:15', 'foo')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'format', 'book', 969085546, 'book')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'genre', 1, 'book', 969085546, 'book')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'title', 1, 'foo', 969085546, 'foo')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '318e542032e1812e600e07efbdb1dfcc', '2015-02-24 21:43:15', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085546, 'b3e04b46751bb5e7e75f36c78255d8e1')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084947 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:15', NULL, 969084947, 'BorrowDirect', 'failed_fatal', '2015-02-24 21:43:15')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:15' WHERE `dispatched_services`.`id` = 4490[0m
[1m[35m (15.8ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=969084947" for 127.0.0.1 at 2015-02-24 16:43:15 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084947"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084947 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085546 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085546)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084947[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084947[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084947 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084947[0m [["request_id", 969084947]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085546 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085546)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.5ms)
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084947 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084947 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085546
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n' WHERE `requests`.`id` = 969084947
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Completed 200 OK in 73ms (Views: 17.7ms | ActiveRecord: 48.2ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:15 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '05e08d5d303dd9e9e493e3c2c9853485' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:15', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'format', 'journal', 969085547, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:15', 'isbn', 1, '9789810743734', 969085547, '9789810743734')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:15', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085547, '05e08d5d303dd9e9e493e3c2c9853485')[0m
[1m[35m (21.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084948
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:16', NULL, 969084948, 'BorrowDirect', 'queued', '2015-02-24 21:43:16')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4491[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085547)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547)[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084948) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084948)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`id` = 4491 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084948, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:16', 'Choose your delivery location', 969084948, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4491
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085547 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084948 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (8.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085547
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (39.8ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084948
[1m[36m (22.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 308ms (Views: 23.3ms | ActiveRecord: 169.2ms)
Started GET "/borrow_direct/BorrowDirect/969084948?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:43:16 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084948"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084948 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4491
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (41.8ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:16', 969084948, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (22.5ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085547 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084948&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A16-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 102ms (ActiveRecord: 92.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4491[0m
[1m[35m (32.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016658
[1m[36m (34.0ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084948&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A16-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:43:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084948", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:43:16-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085547 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084948
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084948 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 [["request_id", 969084948]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085547 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085547)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084948 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084948 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085547[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084948[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 20.1ms | ActiveRecord: 49.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-24 16:43:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a9696acbc99371db6c7ca1e43e57f875' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:16', '0109836413')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:16', 'format', 'journal', 969085548, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:16', 'isbn', 1, '0109836413', 969085548, '0109836413')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:43:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085548, 'a9696acbc99371db6c7ca1e43e57f875')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084949[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:16', NULL, 969084949, 'BorrowDirect', 'queued', '2015-02-24 21:43:16')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4492
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084949 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085548)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085548)
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084949) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084949)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084949 AND `dispatched_services`.`id` = 4492 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084949, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:16', 'This item is not currently available from BorrowDirect', 969084949, '---\n:display_text_i18n: bd_not_available.display_text\n', 'BorrowDirect', 'bd_not_available')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4492[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084949 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085548 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085548)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084949 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084949 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085548
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084949
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 18.5ms | ActiveRecord: 115.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '67d9ee989bb9033291dbc9a153abd152' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:16', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:16', 'format', 'journal', 969085549, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:16', 'isbn', 1, '9789810743734', 969085549, '9789810743734')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:16', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085549, '67d9ee989bb9033291dbc9a153abd152')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084950
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:16', NULL, 969084950, 'BorrowDirect', 'queued', '2015-02-24 21:43:16')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:16' WHERE `dispatched_services`.`id` = 4493[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085549)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549)[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084950) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084950)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`id` = 4493 AND `dispatched_services`.`status` IN ('queued')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:16', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084950, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:16', 'Choose your delivery location', 969084950, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4493
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085549 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084950 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085549
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084950
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
Completed 200 OK in 296ms (Views: 63.3ms | ActiveRecord: 117.7ms)
Started GET "/borrow_direct/BorrowDirect/969084950?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-24 16:43:17 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"969084950"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084950 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'in_progress', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4493
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:17', 969084950, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085549 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549)
Redirected to http://www.example.com/resolve?umlaut.request_id=969084950&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 47ms (ActiveRecord: 38.8ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4493[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 1070016663
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=969084950&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:43:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084950", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:43:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085549 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084950
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084950 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 [["request_id", 969084950]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085549 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085549)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084950 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084950 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085549[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084950[0m
[1m[35m (15.0ms)[0m COMMIT
Completed 200 OK in 73ms (Views: 16.9ms | ActiveRecord: 47.2ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (2.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd559a54575b4e5084cd3e57adf2bf653' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:17', '9789810743734')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:17', 'format', 'journal', 969085550, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:17', 'isbn', 1, '9789810743734', 969085550, '9789810743734')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085550, 'd559a54575b4e5084cd3e57adf2bf653')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (3.4ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084951[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:17', NULL, 969084951, 'BorrowDirect', 'queued', '2015-02-24 21:43:17')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4494
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084951 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085550)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085550)
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084951) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084951)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084951 AND `dispatched_services`.`id` = 4494 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084951, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:17', 'Choose your delivery location', 969084951, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4494[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084951 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085550 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085550)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084951 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084951 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084951 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085550[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084951[0m
[1m[35m (14.9ms)[0m COMMIT
Completed 200 OK in 256ms (Views: 21.4ms | ActiveRecord: 120.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-24 16:43:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9ab43e71e7b12d89184ba63fd1ea237e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:17', '9789810743734')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:17', 'format', 'journal', 969085551, 'journal')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:17', 'isbn', 1, '9789810743734', 969085551, '9789810743734')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('127.0.0.1', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:17', '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 969085551, '9ab43e71e7b12d89184ba63fd1ea237e')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084952[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:17', NULL, 969084952, 'BorrowDirect', 'queued', '2015-02-24 21:43:17')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4495
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (969085551)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551)
[1m[36mServiceResponse Load (4.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (969084952) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (969084952)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`id` = 4495 AND `dispatched_services`.`status` IN ('queued')
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:17', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084952, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'BorrowDirect', 'bd_link_to_search', 'https://catalyst.library.jhu.edu/borrow_direct?query=')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:17', 'Choose your delivery location', 969084952, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `status` = 'successful', `updated_at` = '2015-02-24 21:43:17' WHERE `dispatched_services`.`id` = 4495[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085551 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084952 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (47.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (47.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.3ms)
[1m[36mPermalink Load (1.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085551[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.4ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084952[0m
[1m[35m (14.8ms)[0m COMMIT
Completed 200 OK in 298ms (Views: 65.3ms | ActiveRecord: 116.8ms)
Started GET "/borrow_direct/BorrowDirect/969084952" for 127.0.0.1 at 2015-02-24 16:43:17 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084952"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084952 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:17', 969084952, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085551 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=969084952&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 26ms (ActiveRecord: 20.3ms)
Started GET "/resolve?umlaut.request_id=969084952&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A17-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-24 16:43:17 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"969084952", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-24T16:43:17-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085551 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084952
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 [["request_id", 969084952]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085551 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085551)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_manually_entered_warning.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084952 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084952 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084952 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/resolve/_modal.html.erb (0.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 969085551
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `requests` SET `http_env` = '---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n' WHERE `requests`.`id` = 969084952
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Completed 200 OK in 76ms (Views: 21.4ms | ActiveRecord: 45.9ms)
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '158f1a2344441d5822c31ae3695f5ac8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:18', '9789810743734')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085552, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'isbn', 1, '9789810743734', 969085552, '9789810743734')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085552, '158f1a2344441d5822c31ae3695f5ac8')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084953 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084953, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:18', 'Choose your delivery location', 969084953, '---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 'test_bd', 'bd_request_prompt')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084953 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084953, 'test_bd', 'successful', '2015-02-24 21:43:18')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4496[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084953[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a0e928449a3a48a92bc935d1ae4ddd5' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:18', '0109836413')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085553, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'isbn', 1, '0109836413', 969085553, '0109836413')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '9902a1d22a141a826ae31b1c83cb928c', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085553, '2a0e928449a3a48a92bc935d1ae4ddd5')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084954 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084954, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:18', 'This item is not currently available from BorrowDirect', 969084954, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084954 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084954, 'test_bd', 'successful', '2015-02-24 21:43:18')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4497[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084954[0m
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'aeb05afec39e68ee9b01c374a8d33fe8' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (3.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:18', '000000000')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085554, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'isbn', 1, '000000000', 969085554, '000000000')
[1m[36m (50.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '2b10ccb0ef85bb4e7e43089a2b5eaa14', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085554, 'aeb05afec39e68ee9b01c374a8d33fe8')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mServiceResponse Load (5.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084955 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084955, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:18', 'This item is not currently available from BorrowDirect', 969084955, '---\n:display_text_i18n: bd_not_available.display_text\n', 'test_bd', 'bd_not_available')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084955 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084955, 'test_bd', 'successful', '2015-02-24 21:43:18')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4498[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084955[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0e95cb09f6a162b9ae0ffc83a30bc8ff' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:18', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085555, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'isbn', 1, '9789810743734', 969085555, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085555, '0e95cb09f6a162b9ae0ffc83a30bc8ff')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084956 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084956, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (15.2ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084956 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084956, 'test_bd', 'failed_temporary', '2015-02-24 21:43:18')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/umlaut-0bb3949ce8a4/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4499
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084956
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '359829832c8dce1bfe7f4095ae767c3b' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`, `year`) VALUES ('2015-02-24 21:43:18', 'biological foundations of language', '1967')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'book', 969085556, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'auinit', 1, 'eh', 969085556, 'EH')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'aulast', 1, 'lenneberg', 969085556, 'Lenneberg')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'title', 1, 'biological foundations of language', 969085556, 'Biological foundations of language')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'genre', 1, 'book', 969085556, 'book')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'date', 1, '1967', 969085556, '1967')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', 'd95884a882a64501650fb8f9deae5104', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085556, 'info:sid/google', '359829832c8dce1bfe7f4095ae767c3b')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084957 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084957, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084957 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084957, 'test_bd', 'successful', '2015-02-24 21:43:18')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4500[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084957[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48eda8c179c3003aa61fa414a8cac57a' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `created_at`, `issn`, `title`, `volume`, `year`) VALUES ('the coming anarchy', '2015-02-24 21:43:18', '1072-7825', 'the atlantic monthly', '273', '1994')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085557, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'auinit', 1, 'rd', 969085557, 'RD')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'aulast', 1, 'kaplan', 969085557, 'Kaplan')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'atitle', 1, 'the coming anarchy', 969085557, 'The coming anarchy')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'title', 1, 'the atlantic monthly', 969085557, 'The Atlantic monthly')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'volume', 1, '273', 969085557, '273')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'issue', 1, '2', 969085557, '2')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'date', 1, '1994', 969085557, '1994')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'spage', 1, '44', 969085557, '44')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'issn', 1, '1072-7825', 969085557, '1072-7825')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `referrer_id`, `session_id`) VALUES ('0.0.0.0', '06d451b80bf9fe3ce6849a48c98522d7', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085557, 'info:sid/google', '48eda8c179c3003aa61fa414a8cac57a')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084958 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084958, 'test_bd', 'successful', '2015-02-24 21:43:18')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:18' WHERE `dispatched_services`.`id` = 4501
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084958
[1m[36mServiceResponse Exists (2.1ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 969084958 LIMIT 1[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '54bbfb6ac554b71a1ca52031845939b9' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:18', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085558, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'title', 1, 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 969085558, 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'aulast', 1, 'grimes', 969085558, 'Grimes')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '62590701c6f35b45309577ef8c8c22b4', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085558, '54bbfb6ac554b71a1ca52031845939b9')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (2.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084959, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084959 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bfadecbc8df06cda459b670585d8e11f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:18', 'title')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'format', 'journal', 969085559, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'title', 1, 'title', 969085559, 'title')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:18', 'author', 1, 'au', 969085559, 'au')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:43:18', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085559, 'bfadecbc8df06cda459b670585d8e11f')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:18', 969084960, '--- {}\n', 'test_holding', 'holding')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:18', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084960, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084960 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:18', NULL, 969084960, 'test_bd', 'successful', '2015-02-24 21:43:18')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4502[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084960[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084960 ORDER BY id ASC
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ecac5ca6307b6edd7bd28c3dbbbc984e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085560, 'journal')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085560, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085560, 'ecac5ca6307b6edd7bd28c3dbbbc984e')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084961"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084961 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084961 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 969084961
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084961, '---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 969084961\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085560 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085560)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084961&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.9ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6717af1e583894f31e85e3a1f3ef4ede' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085561, 'journal')[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085561, '121212')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085561, '6717af1e583894f31e85e3a1f3ef4ede')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084962, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"969084962"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084962 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084962 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 1070016681
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084962, '---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 1070016681\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085561 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085561)
Redirected to http://test.host/resolve?umlaut.request_id=969084962&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 25.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5257de679ba2cbb5737dbbd72368e8ef' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (3.3ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085562, 'journal')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085562, '121212')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085562, '5257de679ba2cbb5737dbbd72368e8ef')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084963, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084963"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084963 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (5.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084963 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084963 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:19', NULL, 969084963, 'BorrowDirect', 'in_progress', '2015-02-24 21:43:19')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4503
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084963, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085562 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085562)
Redirected to http://test.host/resolve?umlaut.request_id=969084963&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 72ms (ActiveRecord: 59.5ms)
[1m[36mDispatchedService Load (4.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084963[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084963 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084963 ORDER BY id ASC
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4503[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016684
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8a0ea8b9684702e1eb673e7955721df' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085563, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085563, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085563, 'f8a0ea8b9684702e1eb673e7955721df')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084964, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084964"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084964 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (4.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084964 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084964 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:19', NULL, 969084964, 'BorrowDirect', 'in_progress', '2015-02-24 21:43:19')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4504[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084964, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085563 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085563)[0m
Redirected to http://example.org
Completed 302 Found in 70ms (ActiveRecord: 58.3ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d60c30b7d9fda56b9f51877fb07f9f1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085564, 'journal')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085564, '121212')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (15.0ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085564, '1d60c30b7d9fda56b9f51877fb07f9f1')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084965, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"969084965"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084965 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (5.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084965 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084965, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 27ms (ActiveRecord: 22.6ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd1e389a1c9a180c4473328388f1720ce' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085565, 'journal')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085565, '121212')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085565, 'd1e389a1c9a180c4473328388f1720ce')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084966, '---\n:pickup_locations:\n- one\n- two\n- three\n', 'BorrowDirect', 'bd_request_prompt')[0m
[1m[35m (14.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"969084966"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084966 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084966 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084966 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:19', NULL, 969084966, 'BorrowDirect', 'in_progress', '2015-02-24 21:43:19')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4505
BorrowDirect: Error placing request: BorrowDirect::HttpError HTTP Error: 502: . Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084964 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpError\n:message: ! \'HTTP Error: 502: \'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:43:19' WHERE `dispatched_services`.`id` = 4504[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084966, '---\n:status: in_progress\n:error_user_message: \'\'\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 1070016686[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085565 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085565)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Completed 403 Forbidden in 73ms (Views: 0.3ms | ActiveRecord: 63.4ms)
[1m[36m (16.4ms)[0m [1mCOMMIT[0m
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dcfb2776a32d5e1440d1e9e6e055a1f3' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '121212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085566, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '121212', 969085566, '121212')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e4f2e6742054acb1be6068a6078c6b4d', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085566, 'dcfb2776a32d5e1440d1e9e6e055a1f3')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"969084967"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 969084967 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (4.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084967 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:19', 969084967, '---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 'BorrowDirect', 'bd_request_status')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 969085566 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (969085566)[0m
Redirected to http://test.host/resolve?umlaut.request_id=969084967&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-24T16%3A43%3A19-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 24.7ms)
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.6ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'db4821f75e22b6f8e1b037ce626a3463' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`created_at`, `isbn`) VALUES ('2015-02-24 21:43:19', '9789810743734')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'format', 'journal', 969085567, 'journal')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:19', 'isbn', 1, '9789810743734', 969085567, '9789810743734')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', '1f2487b5ab29a0f58587335258d7f8e0', '2015-02-24 21:43:19', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085567, 'db4821f75e22b6f8e1b037ce626a3463')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084968 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:19', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084968, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084968 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:19', NULL, 969084968, 'test_bd', 'successful', '2015-02-24 21:43:19')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4506
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084968
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6562e593413adb87004ab257814535e' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:20', 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'format', 'journal', 969085568, 'journal')
BorrowDirect: Error placing request: BorrowDirect::HttpError HTTP Error: 502: . Backtrace:
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in `request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in `authentication_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in `get_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in `need_auth_id'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in `request_item_request'
/Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'title', 1, 'title', 969085568, 'title')[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084966 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'author', 1, 'au', 969085568, 'au')[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::HttpError\n:message: ! \'HTTP Error: 502: \'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:95:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/bundler/gems/borrow_direct-28fd3ef93fb1/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `status` = 'failed_fatal', `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4505[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:43:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085568, 'd6562e593413adb87004ab257814535e')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
ServiceResponses skipped for unknown service_ids: BorrowDirect
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:20', 969084966, '---\n:status: error\n', 'BorrowDirect', 'bd_request_status')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:20', 969084969, '---\n:match_reliability: unsure\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (4.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084969 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084969, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084969 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:20', NULL, 969084969, 'test_bd', 'successful', '2015-02-24 21:43:20')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4507
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084969
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f389b01ecadae1ef8d4b5862e9d47c22' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:20', 'title')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'format', 'journal', 969085569, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'title', 1, 'title', 969085569, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'author', 1, 'au', 969085569, 'au')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:43:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085569, 'f389b01ecadae1ef8d4b5862e9d47c22')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:20', 969084970, '---\n:status: Not Charged\n', 'test_holding', 'holding')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (5.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084970 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084970 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:20', NULL, 969084970, 'test_bd', 'successful', '2015-02-24 21:43:20')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4508
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084970
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7e7bc2be7995e2561013e015c61542b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`created_at`, `title`) VALUES ('2015-02-24 21:43:20', 'title')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'format', 'journal', 969085570, 'journal')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'title', 1, 'title', 969085570, 'title')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`created_at`, `key_name`, `metadata`, `normalized_value`, `referent_id`, `value`) VALUES ('2015-02-24 21:43:20', 'author', 1, 'au', 969085570, 'au')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`client_ip_addr`, `contextobj_fingerprint`, `created_at`, `http_env`, `referent_id`, `session_id`) VALUES ('0.0.0.0', 'e7e9149c1fdfcd3be6736b651a0064bb', '2015-02-24 21:43:20', '---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 969085570, 'b7e7bc2be7995e2561013e015c61542b')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`created_at`, `request_id`, `service_data`, `service_id`, `service_type_value_name`) VALUES ('2015-02-24 21:43:20', 969084971, '---\n:status: Checked out really not available can\'t get it\n', 'test_holding', 'holding')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 969084971 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`created_at`, `display_text`, `notes`, `request_id`, `service_data`, `service_id`, `service_type_value_name`, `url`) VALUES ('2015-02-24 21:43:20', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 969084971, '---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 'test_bd', 'bd_link_to_search', 'http://example.com/redirect?query=ti%3D%22title%22')
[1m[36m (16.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084971 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`created_at`, `exception_info`, `request_id`, `service_id`, `status`, `updated_at`) VALUES ('2015-02-24 21:43:20', NULL, 969084971, 'test_bd', 'successful', '2015-02-24 21:43:20')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = NULL, `updated_at` = '2015-02-24 21:43:20' WHERE `dispatched_services`.`id` = 4509[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 969084971[0m
[1m[36mActiveRecord::SchemaMigration Load (11.4ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (352.4ms)[0m [1mDROP DATABASE IF EXISTS `umlaut3_test`[0m
[1m[35m (6.0ms)[0m CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (46.8ms)[0m [1mCREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB[0m
[1m[35m (95.7ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (68.5ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (90.5ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (37.3ms)[0m [1mCREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (76.1ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (34.3ms)[0m [1mCREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB[0m
[1m[35m (69.7ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (34.9ms)[0m [1mCREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (87.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (82.9ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (34.6ms)[0m CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB
[1m[36m (85.3ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (79.3ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (83.1ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (83.7ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (83.9ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (86.6ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (35.7ms)[0m [1mCREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB[0m
[1m[35m (73.3ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (83.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (113.3ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (36.2ms)[0m [1mCREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB[0m
[1m[35m (72.6ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (98.7ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (34.8ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (85.7ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (71.7ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (44.4ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (79.9ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (38.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (111.8ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (1.3ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (15.1ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (1.0ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b6a1837c2eece05924450ff25e0216f2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:07:08.129013')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:07:08.131750')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2015-02-26 17:07:08.133625')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2015-02-26 17:07:08.135550')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b6a1837c2eece05924450ff25e0216f2', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2015-02-26 17:07:08.188070')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 1, 'test_holding', 'holding', '2015-02-26 17:07:08.229967')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:07:08.259047')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:07:08.294346', '2015-02-26 17:07:08.294346')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f63e7e88a2b7c43166b080fc7c388f8c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:07:08.327814')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:07:08.329944')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2015-02-26 17:07:08.331655')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2015-02-26 17:07:08.333351')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f63e7e88a2b7c43166b080fc7c388f8c', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2015-02-26 17:07:08.353675')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 2, 'test_holding', 'holding', '2015-02-26 17:07:08.374689')
[1m[36m (13.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2015-02-26 17:07:08.401651', '2015-02-26 17:07:08.401651')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a35417d0529f0dbdc1bdb9660eb2d1a' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:07:08.465294')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:07:08.467523')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2015-02-26 17:07:08.469400')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2015-02-26 17:07:08.471052')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0a35417d0529f0dbdc1bdb9660eb2d1a', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2015-02-26 17:07:08.490378')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 3, 'test_holding', 'holding', '2015-02-26 17:07:08.512437')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:07:08.541886')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2015-02-26 17:07:08.563267', '2015-02-26 17:07:08.563267')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f51795f4bf4282f86b742acee447897e' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:07:08.596421')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:07:08.598971')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 4, '2015-02-26 17:07:08.600828')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 4, '2015-02-26 17:07:08.602529')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 4, '2015-02-26 17:07:08.604364')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:07:08.606195')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 4, '2015-02-26 17:07:08.607999')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f51795f4bf4282f86b742acee447897e', 'd95884a882a64501650fb8f9deae5104', 4, 'info:sid/google', '0.0.0.0', '2015-02-26 17:07:08.627889')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:07:08.653286')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2015-02-26 17:07:08.675366', '2015-02-26 17:07:08.675366')[0m
[1m[35m (18.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '953049d3572d76800ced9021fcdfbfe6' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:07:08.714776')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:07:08.716947')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 5, '2015-02-26 17:07:08.718767')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 5, '2015-02-26 17:07:08.720481')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 5, '2015-02-26 17:07:08.722245')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 5, '2015-02-26 17:07:08.724238')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 5, '2015-02-26 17:07:08.726073')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 5, '2015-02-26 17:07:08.727928')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 5, '2015-02-26 17:07:08.729564')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 5, '2015-02-26 17:07:08.731251')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 5, '2015-02-26 17:07:08.733110')
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '953049d3572d76800ced9021fcdfbfe6', '06d451b80bf9fe3ce6849a48c98522d7', 5, 'info:sid/google', '0.0.0.0', '2015-02-26 17:07:08.754506')[0m
[1m[35m (16.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2015-02-26 17:07:08.779428', '2015-02-26 17:07:08.779428')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mServiceResponse Exists (1.4ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 5 LIMIT 1
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ee768494caf41a033183110db15a027a' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:07:08.821632')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:07:08.823501')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 6, '2015-02-26 17:07:08.825373')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 6, '2015-02-26 17:07:08.827146')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ee768494caf41a033183110db15a027a', '62590701c6f35b45309577ef8c8c22b4', 6, '0.0.0.0', '2015-02-26 17:07:08.846768')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:07:08.873446')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:08 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f00d98911f55f87edc58b2e0420bdd02' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:08.989859')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:07:08.991964')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:07:08.994096')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f00d98911f55f87edc58b2e0420bdd02', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:07:09.016370')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 7, '2015-02-26 17:07:09.050604', '2015-02-26 17:07:09.050604')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:09.178652')
[1m[36m (21.5ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:07:09.233167' WHERE `dispatched_services`.`id` = 6
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (10.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.0ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (36.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (40.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (101.8ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (11.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (35.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 2382ms (Views: 2073.7ms | ActiveRecord: 70.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:07:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14643647de3f5201afa9bcb54240b139' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:07:11.394470')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 8, '2015-02-26 17:07:11.396538')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 8, '2015-02-26 17:07:11.398344')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 8, '2015-02-26 17:07:11.400013')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 8, '2015-02-26 17:07:11.401785')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '14643647de3f5201afa9bcb54240b139', 'a03fb1fb17f24f5ea845bf6c4450490b', 8, '127.0.0.1', '2015-02-26 17:07:11.422024')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:07:11.448746', '2015-02-26 17:07:11.448746')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:07:11.501316')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:11.524925' WHERE `dispatched_services`.`id` = 7
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.2ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 189ms (Views: 17.9ms | ActiveRecord: 70.1ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:07:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '103945552b84f5a8602e75c7662adad6' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:07:11.590925')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:07:11.592971')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 9, '2015-02-26 17:07:11.594800')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 9, '2015-02-26 17:07:11.596530')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 9, '2015-02-26 17:07:11.598226')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '103945552b84f5a8602e75c7662adad6', 'bc13b80c2923ce2cbe0c8347141587a7', 9, '127.0.0.1', '2015-02-26 17:07:11.618501')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:07:11.645653', '2015-02-26 17:07:11.645653')[0m
[1m[35m (16.3ms)[0m COMMIT
[1m[36m (2.7ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (2.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:11.704295' WHERE `dispatched_services`.`id` = 8
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms)
[1m[36mPermalink Load (1.5ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 208ms (Views: 17.0ms | ActiveRecord: 74.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b9ffb0e0e0db0af4990a68c6f0d1888' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:07:11.802171')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 10, '2015-02-26 17:07:11.804174')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 10, '2015-02-26 17:07:11.806167')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 10, '2015-02-26 17:07:11.808086')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1b9ffb0e0e0db0af4990a68c6f0d1888', '318e542032e1812e600e07efbdb1dfcc', 10, '0.0.0.0', '2015-02-26 17:07:11.828156')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 10, '2015-02-26 17:07:11.851459', '2015-02-26 17:07:11.851459')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=10" for 127.0.0.1 at 2015-02-26 12:07:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"10"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m [["request_id", 10]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 [["id", 10]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.3ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
Completed 200 OK in 37ms (Views: 15.9ms | ActiveRecord: 13.3ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c60dfc5b4a97ca89df514b491cbfbfd7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:11.936113')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:07:11.938287')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2015-02-26 17:07:11.940225')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c60dfc5b4a97ca89df514b491cbfbfd7', '1f2487b5ab29a0f58587335258d7f8e0', 11, '127.0.0.1', '2015-02-26 17:07:11.964502')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 11, '2015-02-26 17:07:11.995600', '2015-02-26 17:07:11.995600')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (11)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (11) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (11)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.5ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 11, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:12.053547')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 11, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:12.087337')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:12.112741' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
[1m[35mDispatchedService Load (1.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (46.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (49.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (50.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (70.0ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 281ms (Views: 62.0ms | ActiveRecord: 85.2ms)
Started GET "/borrow_direct/BorrowDirect/11?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:07:12 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:07:12.225974' WHERE `dispatched_services`.`id` = 10
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 11, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:12.250019')[0m
[1m[35m (29.6ms)[0m COMMIT
[1m[36mReferent Load (0.7ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Redirected to http://www.example.com/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 71ms (ActiveRecord: 58.7ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:07:12.300169' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (20.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 12
[1m[36m (61.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:07:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"11", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:07:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m [["request_id", 11]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1 [["id", 11]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.4ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 11
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
Completed 200 OK in 40ms (Views: 19.0ms | ActiveRecord: 11.1ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:07:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b274670326e9f138058e45768477293c' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:07:12.450767')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:07:12.452944')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 12, '2015-02-26 17:07:12.454820')[0m
[1m[35m (73.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (16.6ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b274670326e9f138058e45768477293c', '9902a1d22a141a826ae31b1c83cb928c', 12, '127.0.0.1', '2015-02-26 17:07:12.535122')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 12, '2015-02-26 17:07:12.583836', '2015-02-26 17:07:12.583836')
[1m[36m (40.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (12)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (12) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (12)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`id` = 11 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:12.666504')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 12, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:07:12.692604')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:12.755801' WHERE `dispatched_services`.`id` = 11[0m
[1m[35m (17.5ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.5ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 12
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 362ms (Views: 18.7ms | ActiveRecord: 174.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6c446cbececefbb91f01ab6028ecab5d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:12.823554')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:07:12.825718')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 13, '2015-02-26 17:07:12.827573')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '6c446cbececefbb91f01ab6028ecab5d', '1f2487b5ab29a0f58587335258d7f8e0', 13, '127.0.0.1', '2015-02-26 17:07:12.847987')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 13, '2015-02-26 17:07:12.874655', '2015-02-26 17:07:12.874655')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (13)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (13) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (13)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:12.927357')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 13, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:12.956176')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:12.980621' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.2ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 216ms (Views: 19.7ms | ActiveRecord: 67.5ms)
Started GET "/borrow_direct/BorrowDirect/13?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:07:13 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:07:13.043649' WHERE `dispatched_services`.`id` = 12
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 13, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:13.062853')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
Redirected to http://www.example.com/resolve?umlaut.request_id=13&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 48ms (ActiveRecord: 37.7ms)
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:13.135637' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 17
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=13&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:07:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"13", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:07:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m [["request_id", 13]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1 [["id", 13]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 13
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 38ms (Views: 16.8ms | ActiveRecord: 11.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '553c06d9b29e09d4b2c554c3cc25952f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:13.235549')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:07:13.237598')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-02-26 17:07:13.239432')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '553c06d9b29e09d4b2c554c3cc25952f', '1f2487b5ab29a0f58587335258d7f8e0', 14, '127.0.0.1', '2015-02-26 17:07:13.260317')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 14, '2015-02-26 17:07:13.288235', '2015-02-26 17:07:13.288235')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (14)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (14) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (14)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (19.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`id` = 13 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:13.349865')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 14, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:13.378043')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:13.404025' WHERE `dispatched_services`.`id` = 13[0m
[1m[35m (25.3ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.3ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 14[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 238ms (Views: 20.6ms | ActiveRecord: 72.8ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:07:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7aa1aa02876475445d9bec978b2681b0' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:13.524268')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:07:13.526285')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2015-02-26 17:07:13.528342')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7aa1aa02876475445d9bec978b2681b0', '1f2487b5ab29a0f58587335258d7f8e0', 15, '127.0.0.1', '2015-02-26 17:07:13.549895')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 15, '2015-02-26 17:07:13.576478', '2015-02-26 17:07:13.576478')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (15)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (15) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (15)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`id` = 14 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:07:13.630706')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 15, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:13.659779')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:07:13.685342' WHERE `dispatched_services`.`id` = 14
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.4ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 219ms (Views: 20.5ms | ActiveRecord: 69.0ms)
Started GET "/borrow_direct/BorrowDirect/15" for 127.0.0.1 at 2015-02-26 12:07:13 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 15, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:13.746813')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=15&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 20.8ms)
Started GET "/resolve?umlaut.request_id=15&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:07:13 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"15", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:07:13-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mRequest Load (0.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m [["request_id", 15]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1 [["id", 15]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 15[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 42ms (Views: 20.1ms | ActiveRecord: 11.6ms)
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.3ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c5c0953006f4a59a64f4f2a4df005d4a' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:13.882572')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:07:13.884629')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2015-02-26 17:07:13.886444')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c5c0953006f4a59a64f4f2a4df005d4a', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2015-02-26 17:07:13.906150')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 16
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 16\n', 16, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:13.932680')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)
Redirected to http://test.host/resolve?umlaut.request_id=16&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.4ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '38e236ca223e117318d1d43c94a10ecc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:13.962708')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:07:13.964736')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2015-02-26 17:07:13.966558')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '38e236ca223e117318d1d43c94a10ecc', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2015-02-26 17:07:13.986579')
[1m[36m (20.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 17, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.014960')[0m
[1m[35m (15.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 24
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 24\n', 17, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.042093')
[1m[36m (19.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)[0m
Redirected to http://test.host/resolve?umlaut.request_id=17&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 36ms (ActiveRecord: 27.0ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '94a9fec4906a9b8d2c1794ec293ba61e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.078471')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:07:14.080454')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2015-02-26 17:07:14.082353')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '94a9fec4906a9b8d2c1794ec293ba61e', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2015-02-26 17:07:14.105777')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 18, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.126752')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2015-02-26 17:07:14.155938', '2015-02-26 17:07:14.155938')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 18, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.181182')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)
Redirected to http://test.host/resolve?umlaut.request_id=18&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 58ms (ActiveRecord: 46.2ms)
[1m[36mDispatchedService Load (2.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mServiceResponse Load (4.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.5ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:07:14.225691' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (19.1ms)[0m COMMIT
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '29733c88b3725889c05760bf72a05df2' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.281481')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:07:14.283597')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2015-02-26 17:07:14.285716')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '29733c88b3725889c05760bf72a05df2', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2015-02-26 17:07:14.304930')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 19, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.326418')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 19, '2015-02-26 17:07:14.353880', '2015-02-26 17:07:14.353880')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.375541')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)
Redirected to http://example.org
Completed 302 Found in 52ms (ActiveRecord: 41.4ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a5cf12e12d04c2716e3766c3cec4f830' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.409508')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:07:14.411568')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2015-02-26 17:07:14.413576')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a5cf12e12d04c2716e3766c3cec4f830', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2015-02-26 17:07:14.432831')
[1m[36m (37.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 20, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.477273')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.503597')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 71ms (ActiveRecord: 19.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b05eda069aba98fb561221663de746bd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.575553')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:07:14.577505')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2015-02-26 17:07:14.579358')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b05eda069aba98fb561221663de746bd', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2015-02-26 17:07:14.598895')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 21, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:07:14.620674')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2015-02-26 17:07:14.647820', '2015-02-26 17:07:14.647820')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 21, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.668906')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 56ms (Views: 0.4ms | ActiveRecord: 41.1ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mRequest Load (5.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '123a4489e95047acf8c779f60adc3d5d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (9.5ms)[0m BEGIN
[1m[36mSQL (3.5ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:07:14.712709' WHERE `dispatched_services`.`id` = 17[0m
[1m[35mSQL (2.9ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:07:14.723084')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:07:14.726812')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:07:14.728690')
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 33[0m
[1m[35m (16.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '123a4489e95047acf8c779f60adc3d5d', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:07:14.750515')
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (16.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:07:14.779221')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Redirected to http://test.host/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A07%3A14-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 21.9ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'df41b5f9edb894a00ee341eff2b7688d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:14.811112')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:07:14.813170')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 23, '2015-02-26 17:07:14.814937')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'df41b5f9edb894a00ee341eff2b7688d', '1f2487b5ab29a0f58587335258d7f8e0', 23, '0.0.0.0', '2015-02-26 17:07:14.835540')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:14.862703')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2015-02-26 17:07:14.883912', '2015-02-26 17:07:14.883912')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15bfb2bce95cb8b132e623892394d090' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:14.914353')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:07:14.916351')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 24, '2015-02-26 17:07:14.918056')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '15bfb2bce95cb8b132e623892394d090', '1f2487b5ab29a0f58587335258d7f8e0', 24, '0.0.0.0', '2015-02-26 17:07:14.942359')[0m
[1m[35m (13.8ms)[0m COMMIT
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:14.966667')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 24, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:07:14.994072')
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2015-02-26 17:07:15.020192', '2015-02-26 17:07:15.020192')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '163d0f07853a321ec49ec012cc4e8a12' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:07:15.049500')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:07:15.051698')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 25, '2015-02-26 17:07:15.053519')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '163d0f07853a321ec49ec012cc4e8a12', '9902a1d22a141a826ae31b1c83cb928c', 25, '0.0.0.0', '2015-02-26 17:07:15.073532')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:15.100134')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 25, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:07:15.171781')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2015-02-26 17:07:15.195527', '2015-02-26 17:07:15.195527')[0m
[1m[35m (16.6ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35m (1.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c353fc8d0a17e6b5bf4da9a7ae57fda' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:07:15.226651')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:07:15.228901')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 26, '2015-02-26 17:07:15.230880')
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7c353fc8d0a17e6b5bf4da9a7ae57fda', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 26, '0.0.0.0', '2015-02-26 17:07:15.255284')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (1.8ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:15.280778')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 26, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:07:15.308120')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:07:15.330867', '2015-02-26 17:07:15.330867')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8804b5444b808ba6b18d06e3d65d8d3f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:07:15.360848')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:07:15.362883')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2015-02-26 17:07:15.364743')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8804b5444b808ba6b18d06e3d65d8d3f', '1f2487b5ab29a0f58587335258d7f8e0', 27, '0.0.0.0', '2015-02-26 17:07:15.385426')
[1m[36m (31.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:07:15.427699')
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 27, '2015-02-26 17:07:15.462297', '2015-02-26 17:07:15.462297')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:07:15.490611' WHERE `dispatched_services`.`id` = 22[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dbc664e50d3742d319c30384506ff4e4' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:07:15.551295')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:07:15.553380')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2015-02-26 17:07:15.555395')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2015-02-26 17:07:15.557241')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'dbc664e50d3742d319c30384506ff4e4', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2015-02-26 17:07:15.577773')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (28, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:07:15.599744')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:07:15.620745')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-02-26 17:07:15.645335', '2015-02-26 17:07:15.645335')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[36mActiveRecord::SchemaMigration Load (2.9ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (82.6ms)[0m [1mDROP DATABASE IF EXISTS `umlaut3_test`[0m
[1m[35m (5.9ms)[0m CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (39.8ms)[0m [1mCREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB[0m
[1m[35m (84.6ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (94.4ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (90.4ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (34.2ms)[0m [1mCREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (91.5ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (34.3ms)[0m [1mCREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB[0m
[1m[35m (71.4ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (34.3ms)[0m [1mCREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (86.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (70.4ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (36.1ms)[0m CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB
[1m[36m (79.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (111.2ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (86.7ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (79.3ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (80.3ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (85.1ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (35.1ms)[0m [1mCREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB[0m
[1m[35m (80.5ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (72.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (76.0ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (34.5ms)[0m [1mCREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB[0m
[1m[35m (80.8ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (74.7ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (33.6ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (78.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (68.4ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (33.9ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (80.8ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (34.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (96.9ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (1.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (14.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (1.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '574d7240e0c29d218b37837679991a25' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:55.599401')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:08:55.601919')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:08:55.603889')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '574d7240e0c29d218b37837679991a25', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:08:55.672458')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:08:55.721418', '2015-02-26 17:08:55.721418')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:55.871544')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:08:55.935716' WHERE `dispatched_services`.`id` = 1
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (7.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (41.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (42.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (96.5ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 662ms (Views: 144.1ms | ActiveRecord: 88.1ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:08:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '26031e9be5163054f586d90d00212073' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:08:56.141005')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:08:56.143182')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:08:56.144930')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:08:56.146575')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:08:56.148474')[0m
[1m[35m (31.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '26031e9be5163054f586d90d00212073', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:08:56.186238')
[1m[36m (41.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:08:56.241057', '2015-02-26 17:08:56.241057')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (43.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:08:56.326805')
[1m[36m (32.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:56.367746' WHERE `dispatched_services`.`id` = 2
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (35.5ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 322ms (Views: 18.6ms | ActiveRecord: 152.5ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:08:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c812855a71a044aad4f19ad5a8871389' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:08:56.470845')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:08:56.473103')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:08:56.475025')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:08:56.476929')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:08:56.478854')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c812855a71a044aad4f19ad5a8871389', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:08:56.502106')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:08:56.533116', '2015-02-26 17:08:56.533116')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:56.589410' WHERE `dispatched_services`.`id` = 3
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (17.9ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 174ms (Views: 15.7ms | ActiveRecord: 75.2ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0a20e08ebb0b433605a138e679cacdcb' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:08:56.648001')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:08:56.650174')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:08:56.652175')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:08:56.654157')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0a20e08ebb0b433605a138e679cacdcb', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:08:56.674088')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:08:56.696738', '2015-02-26 17:08:56.696738')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:08:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m [["request_id", 4]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.4ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 36ms (Views: 16.4ms | ActiveRecord: 11.9ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '97fdad2518ce7cd91f254230aed0b49a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:56.813292')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:08:56.815368')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:08:56.817145')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '97fdad2518ce7cd91f254230aed0b49a', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:08:56.837325')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:08:56.864553', '2015-02-26 17:08:56.864553')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.6ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:56.917008')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:56.947027')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:56.972459' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (34.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (36.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (37.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (55.0ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 22.3ms | ActiveRecord: 95.9ms)
Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:08:57 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:08:57.067700' WHERE `dispatched_services`.`id` = 5
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:08:57.089529')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 60ms (ActiveRecord: 41.8ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:08:57.125980' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5
[1m[36m (16.1ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:08:57 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:08:57-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m [["request_id", 5]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.0ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 40ms (Views: 18.2ms | ActiveRecord: 11.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:08:57 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ec2272d765f3b3d84981c46a8fe8e07' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:08:57.266492')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:08:57.268532')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:08:57.270516')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '0ec2272d765f3b3d84981c46a8fe8e07', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:08:57.290921')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:08:57.321703', '2015-02-26 17:08:57.321703')
[1m[36m (18.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:57.378180')
[1m[36m (18.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:08:57.409394')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:57.431557' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.5ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
Completed 200 OK in 220ms (Views: 18.1ms | ActiveRecord: 74.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:57 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'eb1328d0e794f17891902df924f34c13' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:57.533829')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:08:57.536035')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:08:57.537996')[0m
[1m[35m (18.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'eb1328d0e794f17891902df924f34c13', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:08:57.562708')
[1m[36m (20.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:08:57.596038', '2015-02-26 17:08:57.596038')
[1m[36m (16.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:57.651679')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:57.686767')[0m
[1m[35m (39.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:57.737199' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (38.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.2ms)
[1m[36mPermalink Load (1.2ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 285ms (Views: 19.9ms | ActiveRecord: 80.5ms)
Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:08:57 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:08:57.824553' WHERE `dispatched_services`.`id` = 7
[1m[36m (16.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:08:57.845927')[0m
[1m[35m (20.2ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 57ms (ActiveRecord: 47.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:57.883784' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (20.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:08:57 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:08:57-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m [["request_id", 7]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms)
[1m[35mPermalink Load (0.9ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
Completed 200 OK in 38ms (Views: 15.9ms | ActiveRecord: 12.7ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:58 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d213ec65f44771f3c830a607092098d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:58.022002')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:08:58.024167')
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:08:58.026078')[0m
[1m[35m (51.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1d213ec65f44771f3c830a607092098d', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:08:58.084019')
[1m[36m (25.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:08:58.121208', '2015-02-26 17:08:58.121208')
[1m[36m (19.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (26.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:58.191021')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:58.218454')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:58.243624' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.3ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 279ms (Views: 19.7ms | ActiveRecord: 120.3ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:08:58 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '634b6cd22ad47ecbb577254add6cf793' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:58.313223')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:08:58.315224')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:08:58.317102')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '634b6cd22ad47ecbb577254add6cf793', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:08:58.375226')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:08:58.406779', '2015-02-26 17:08:58.406779')[0m
[1m[35m (40.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (18.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (1.2ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:08:58.489930')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:58.522213')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:08:58.548727' WHERE `dispatched_services`.`id` = 9
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.5ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (2.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.7ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
Completed 200 OK in 294ms (Views: 19.8ms | ActiveRecord: 100.3ms)
Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:08:58 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:08:58.611940')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 21.4ms)
Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A08%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:08:58 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:08:58-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m [["request_id", 9]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.0ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 42ms (Views: 19.7ms | ActiveRecord: 12.2ms)
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd60d5a96cd33deba7b35250455763c1f' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:58.729004')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:08:58.731115')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2015-02-26 17:08:58.732963')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd60d5a96cd33deba7b35250455763c1f', '1f2487b5ab29a0f58587335258d7f8e0', 10, '0.0.0.0', '2015-02-26 17:08:58.753533')[0m
[1m[35m (25.3ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:58.789441')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2015-02-26 17:08:58.811108', '2015-02-26 17:08:58.811108')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '845bea5cc171a2ea2977f55fa52fa084' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:08:58.842715')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 11, '2015-02-26 17:08:58.844839')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 11, '2015-02-26 17:08:58.846612')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 11, '2015-02-26 17:08:58.848370')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 11, '2015-02-26 17:08:58.850029')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 11, '2015-02-26 17:08:58.851862')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 11, '2015-02-26 17:08:58.853569')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '845bea5cc171a2ea2977f55fa52fa084', 'd95884a882a64501650fb8f9deae5104', 11, 'info:sid/google', '0.0.0.0', '2015-02-26 17:08:58.874066')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:08:58.899032')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2015-02-26 17:08:58.921040', '2015-02-26 17:08:58.921040')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a8422b564148656993e8c78e6e65fd7' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:08:58.956010')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:08:58.958058')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 12, '2015-02-26 17:08:58.959820')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 12, '2015-02-26 17:08:58.961527')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 12, '2015-02-26 17:08:58.963361')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 12, '2015-02-26 17:08:58.965130')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 12, '2015-02-26 17:08:58.966846')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 12, '2015-02-26 17:08:58.968573')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 12, '2015-02-26 17:08:58.970395')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 12, '2015-02-26 17:08:58.972267')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 12, '2015-02-26 17:08:58.974037')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5a8422b564148656993e8c78e6e65fd7', '06d451b80bf9fe3ce6849a48c98522d7', 12, 'info:sid/google', '0.0.0.0', '2015-02-26 17:08:58.994207')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2015-02-26 17:08:59.016287', '2015-02-26 17:08:59.016287')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12[0m
[1m[35mServiceResponse Exists (1.1ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 12 LIMIT 1
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '40a4a898956575fc5b3eae293885d418' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:08:59.053106')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:08:59.055022')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 13, '2015-02-26 17:08:59.056745')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 13, '2015-02-26 17:08:59.058463')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '40a4a898956575fc5b3eae293885d418', '62590701c6f35b45309577ef8c8c22b4', 13, '0.0.0.0', '2015-02-26 17:08:59.078435')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:08:59.100900')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62423cd53726af9275e8672942be2ed1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:59.133183')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:08:59.135122')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-02-26 17:08:59.136953')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '62423cd53726af9275e8672942be2ed1', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2015-02-26 17:08:59.157217')
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:59.185548')
[1m[36m (20.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 14, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:08:59.218783')[0m
[1m[35m (23.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2015-02-26 17:08:59.293874', '2015-02-26 17:08:59.293874')[0m
[1m[35m (66.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a489a73a65e08b8873ea1d1b731d3981' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:08:59.374120')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:08:59.376151')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 15, '2015-02-26 17:08:59.378059')
[1m[36m (19.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a489a73a65e08b8873ea1d1b731d3981', '9902a1d22a141a826ae31b1c83cb928c', 15, '0.0.0.0', '2015-02-26 17:08:59.402211')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:59.426732')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 15, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:08:59.455293')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2015-02-26 17:08:59.477091', '2015-02-26 17:08:59.477091')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77b9517dda89cc39da68793b54d2599d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:08:59.506175')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:08:59.508341')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2015-02-26 17:08:59.510257')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '77b9517dda89cc39da68793b54d2599d', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2015-02-26 17:08:59.530897')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:59.556149')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 16, '2015-02-26 17:08:59.582906', '2015-02-26 17:08:59.582906')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:08:59.607704' WHERE `dispatched_services`.`id` = 15[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '60781e5817e67b9744c6e78c9aa39670' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:08:59.664279')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:08:59.666336')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 17, '2015-02-26 17:08:59.668309')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '60781e5817e67b9744c6e78c9aa39670', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 17, '0.0.0.0', '2015-02-26 17:08:59.688193')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:08:59.713610')[0m
[1m[35m (19.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 17, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:08:59.744415')
[1m[36m (36.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2015-02-26 17:08:59.787569', '2015-02-26 17:08:59.787569')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd5ea8be6aaf9331d0d4c4c9e81d04d3c' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:08:59.817700')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:08:59.819711')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2015-02-26 17:08:59.821692')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2015-02-26 17:08:59.823500')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd5ea8be6aaf9331d0d4c4c9e81d04d3c', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2015-02-26 17:08:59.843062')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (18, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:08:59.906687')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:08:59.928167')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2015-02-26 17:08:59.949542', '2015-02-26 17:08:59.949542')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36m (0.7ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.7ms)[0m ROLLBACK
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1d4c20f24ee6e27d82ce41d7a10da1a2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:08:59.996390')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:08:59.998518')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2015-02-26 17:09:00.000509')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2015-02-26 17:09:00.002473')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1d4c20f24ee6e27d82ce41d7a10da1a2', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2015-02-26 17:09:00.025919')[0m
[1m[35m (18.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 19, 'test_holding', 'holding', '2015-02-26 17:09:00.051710')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:00.080540')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2015-02-26 17:09:00.102318', '2015-02-26 17:09:00.102318')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd59275dddb58f4574bab1a6fb4f28a5f' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:00.130458')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:09:00.132522')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2015-02-26 17:09:00.134444')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2015-02-26 17:09:00.136357')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd59275dddb58f4574bab1a6fb4f28a5f', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2015-02-26 17:09:00.155684')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 20, 'test_holding', 'holding', '2015-02-26 17:09:00.176985')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2015-02-26 17:09:00.204198', '2015-02-26 17:09:00.204198')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '623388d0d1ffac1aafa816e46560cafb' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:00.233308')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:09:00.235336')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 21, '2015-02-26 17:09:00.237270')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 21, '2015-02-26 17:09:00.239076')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '623388d0d1ffac1aafa816e46560cafb', 'e7e9149c1fdfcd3be6736b651a0064bb', 21, '0.0.0.0', '2015-02-26 17:09:00.258729')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 21, 'test_holding', 'holding', '2015-02-26 17:09:00.279799')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:00.307384')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 21, '2015-02-26 17:09:00.329063', '2015-02-26 17:09:00.329063')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d62fcf717c846e3c81e1d751768b193' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.370273')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:09:00.372416')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:09:00.374203')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8d62fcf717c846e3c81e1d751768b193', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:09:00.393462')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 22
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 22\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.419310')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
Redirected to http://test.host/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.6ms)
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4201cdb2fa70a596c399bda8e0a2936e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.448601')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:09:00.450679')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2015-02-26 17:09:00.452394')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4201cdb2fa70a596c399bda8e0a2936e', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2015-02-26 17:09:00.472374')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 23, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:00.494661')[0m
[1m[35m (13.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 34
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 34\n', 23, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.564812')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 23 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (23)[0m
Redirected to http://test.host/resolve?umlaut.request_id=23&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.4ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd3e768bcc238f2cb706fcab717202ec0' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.595776')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:09:00.597893')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2015-02-26 17:09:00.599901')
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd3e768bcc238f2cb706fcab717202ec0', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2015-02-26 17:09:00.623501')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 24, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:00.644558')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2015-02-26 17:09:00.671743', '2015-02-26 17:09:00.671743')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 24, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.693026')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)
Redirected to http://test.host/resolve?umlaut.request_id=24&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A00-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 53ms (ActiveRecord: 41.2ms)
[1m[36mDispatchedService Load (2.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mServiceResponse Load (4.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:00.736735' WHERE `dispatched_services`.`id` = 21[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 37
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'de316146134d506cf78cf462eee42cb1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.782090')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:09:00.784117')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2015-02-26 17:09:00.786069')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'de316146134d506cf78cf462eee42cb1', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2015-02-26 17:09:00.805631')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 25, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:00.826400')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 25, '2015-02-26 17:09:00.852959', '2015-02-26 17:09:00.852959')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 25, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.873757')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://example.org
Completed 302 Found in 54ms (ActiveRecord: 40.2ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e22bf1aa56935d9b30af102132d8dc10' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:00.907628')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:09:00.909584')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 26, '2015-02-26 17:09:00.911419')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e22bf1aa56935d9b30af102132d8dc10', 'e4f2e6742054acb1be6068a6078c6b4d', 26, '0.0.0.0', '2015-02-26 17:09:00.931185')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 26, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:00.952642')[0m
[1m[35m (14.6ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"26"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 26 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 26, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:00.979163')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 25ms (ActiveRecord: 18.9ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c8cc1e918b8bc28813b23317539fa1bd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:01.005600')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:09:01.007555')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 27, '2015-02-26 17:09:01.009288')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c8cc1e918b8bc28813b23317539fa1bd', 'e4f2e6742054acb1be6068a6078c6b4d', 27, '0.0.0.0', '2015-02-26 17:09:01.028740')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 27, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:01.053218')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"27"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 27 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 27, '2015-02-26 17:09:01.081480', '2015-02-26 17:09:01.081480')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 27, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:01.102438')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 27 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (27)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 55ms (Views: 0.4ms | ActiveRecord: 40.1ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mRequest Load (5.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f86b542ab7b0f25c0a0c9f147227a430' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (9.7ms)[0m BEGIN
[1m[36mSQL (3.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:01.187536' WHERE `dispatched_services`.`id` = 23[0m
[1m[35mSQL (3.0ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:01.198335')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:09:01.202187')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 28, '2015-02-26 17:09:01.204185')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 43[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f86b542ab7b0f25c0a0c9f147227a430', 'e4f2e6742054acb1be6068a6078c6b4d', 28, '0.0.0.0', '2015-02-26 17:09:01.225812')
[1m[36m (18.1ms)[0m [1mCOMMIT[0m
[1m[35m (15.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"28"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 28 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 28, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:01.253667')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 28 LIMIT 1
[1m[36mReferentValue Load (1.6ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (28)[0m
Redirected to http://test.host/resolve?umlaut.request_id=28&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A01-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.7ms)
[1m[36mActiveRecord::SchemaMigration Load (2.5ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (100.9ms)[0m [1mDROP DATABASE IF EXISTS `umlaut3_test`[0m
[1m[35m (5.8ms)[0m CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (42.9ms)[0m [1mCREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB[0m
[1m[35m (89.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (85.0ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (78.1ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (34.4ms)[0m [1mCREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (73.7ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (34.2ms)[0m [1mCREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB[0m
[1m[35m (67.7ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (34.8ms)[0m [1mCREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (78.6ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (68.5ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (34.1ms)[0m CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB
[1m[36m (100.4ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (76.0ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (70.9ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (76.1ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (72.2ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (97.8ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (39.5ms)[0m [1mCREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB[0m
[1m[35m (72.3ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (80.7ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (69.3ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (36.9ms)[0m [1mCREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB[0m
[1m[35m (74.8ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (80.2ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (34.7ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (79.0ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (66.6ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (33.8ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (76.8ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (33.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (88.3ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (1.1ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (19.3ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (1.1ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:25 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f8344199057e998d5cc4bcede0fb50ef' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:25.886994')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:09:25.922898')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:09:25.925298')[0m
[1m[35m (17.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'f8344199057e998d5cc4bcede0fb50ef', '1f2487b5ab29a0f58587335258d7f8e0', 1, '127.0.0.1', '2015-02-26 17:09:25.964328')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 1, '2015-02-26 17:09:26.014529', '2015-02-26 17:09:26.014529')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (1)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (1) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (1)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`id` = 1 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:26.166029')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:09:26.230886' WHERE `dispatched_services`.`id` = 1
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 1 LIMIT 1
[1m[36mDispatchedService Load (7.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 1 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (1)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (41.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (42.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (97.2ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 1
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 675ms (Views: 143.2ms | ActiveRecord: 90.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:09:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '22b309c711095d92ebbabca017a6ebe7' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:09:26.432607')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 2, '2015-02-26 17:09:26.434777')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 2, '2015-02-26 17:09:26.436869')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 2, '2015-02-26 17:09:26.438704')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 2, '2015-02-26 17:09:26.440440')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '22b309c711095d92ebbabca017a6ebe7', 'a03fb1fb17f24f5ea845bf6c4450490b', 2, '127.0.0.1', '2015-02-26 17:09:26.461325')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 2, '2015-02-26 17:09:26.489062', '2015-02-26 17:09:26.489062')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:09:26.541857')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:26.563748' WHERE `dispatched_services`.`id` = 2
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.9ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 234ms (Views: 22.7ms | ActiveRecord: 69.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:09:26 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7346574a80ad44347415b2ce4b8233d2' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:09:26.674683')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:09:26.676728')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 3, '2015-02-26 17:09:26.678490')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 3, '2015-02-26 17:09:26.680209')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 3, '2015-02-26 17:09:26.682012')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7346574a80ad44347415b2ce4b8233d2', 'bc13b80c2923ce2cbe0c8347141587a7', 3, '127.0.0.1', '2015-02-26 17:09:26.702153')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:09:26.728759', '2015-02-26 17:09:26.728759')[0m
[1m[35m (65.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (44.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:26.861440' WHERE `dispatched_services`.`id` = 3
[1m[36m (16.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mReferent Load (1.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.4ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 244ms (Views: 16.9ms | ActiveRecord: 119.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a49a69e939675d09f135ba3df78fc396' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:09:26.923576')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 4, '2015-02-26 17:09:26.925902')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 4, '2015-02-26 17:09:26.927790')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:09:26.929621')[0m
[1m[35m (52.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a49a69e939675d09f135ba3df78fc396', '318e542032e1812e600e07efbdb1dfcc', 4, '0.0.0.0', '2015-02-26 17:09:26.986933')
[1m[36m (33.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 4, '2015-02-26 17:09:27.027463', '2015-02-26 17:09:27.027463')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=4" for 127.0.0.1 at 2015-02-26 12:09:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"4"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m [["request_id", 4]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1 [["id", 4]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.2ms)
[1m[35mPermalink Load (1.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 36ms (Views: 15.9ms | ActiveRecord: 12.6ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e26cbff366744132f2cba9a79868225' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:27.145045')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:09:27.147288')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 5, '2015-02-26 17:09:27.149204')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '4e26cbff366744132f2cba9a79868225', '1f2487b5ab29a0f58587335258d7f8e0', 5, '127.0.0.1', '2015-02-26 17:09:27.170046')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 5, '2015-02-26 17:09:27.196834', '2015-02-26 17:09:27.196834')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (5)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (5) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (5)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`id` = 5 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:27.250132')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 5, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:27.279201')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:27.304739' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m [["id", 5]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (25.6ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 219ms (Views: 23.1ms | ActiveRecord: 67.8ms)
Started GET "/borrow_direct/BorrowDirect/5?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:09:27 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"5"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.0ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:09:27.370406' WHERE `dispatched_services`.`id` = 5
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 5, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:27.390327')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Redirected to http://www.example.com/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 51ms (ActiveRecord: 38.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:27.425698' WHERE `dispatched_services`.`id` = 5[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 5
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=5&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A27-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:09:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"5", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:09:27-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m [["request_id", 5]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.9ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.5ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
Completed 200 OK in 43ms (Views: 21.4ms | ActiveRecord: 10.8ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:09:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1eb6166fa4b29577a6c0954736d51e71' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:09:27.565426')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:09:27.567657')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 6, '2015-02-26 17:09:27.569513')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '1eb6166fa4b29577a6c0954736d51e71', '9902a1d22a141a826ae31b1c83cb928c', 6, '127.0.0.1', '2015-02-26 17:09:27.589971')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:09:27.616733', '2015-02-26 17:09:27.616733')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:27.670620')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 6, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:09:27.697000')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:27.718445' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.7ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (20.8ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
Completed 200 OK in 207ms (Views: 18.9ms | ActiveRecord: 65.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:27 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '803389be683471404020f026bcd92e56' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:27.819103')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:09:27.821387')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:09:27.823370')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '803389be683471404020f026bcd92e56', '1f2487b5ab29a0f58587335258d7f8e0', 7, '127.0.0.1', '2015-02-26 17:09:27.844016')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:09:27.871206', '2015-02-26 17:09:27.871206')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (2.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (16.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:27.927960')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:27.957667')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:27.982858' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m [["id", 7]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (24.5ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 222ms (Views: 21.5ms | ActiveRecord: 67.4ms)
Started GET "/borrow_direct/BorrowDirect/7?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:09:28 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"7"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:09:28.046575' WHERE `dispatched_services`.`id` = 7
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 7, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:28.065971')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Redirected to http://www.example.com/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 50ms (ActiveRecord: 38.4ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:28.098982' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 10
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=7&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:09:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"7", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:09:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m [["request_id", 7]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1 [["id", 7]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.7ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 40ms (Views: 18.2ms | ActiveRecord: 10.8ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e4420e9a194491559fb75b5d9edd9ad4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:28.232258')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:09:28.234665')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:09:28.236825')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'e4420e9a194491559fb75b5d9edd9ad4', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:09:28.257614')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:09:28.285167', '2015-02-26 17:09:28.285167')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:28.337425')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:28.366137')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:28.391755' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m [["id", 8]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.7ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 217ms (Views: 21.8ms | ActiveRecord: 66.6ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:09:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7c2a6154e3131158621caf660a7bcddb' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:28.462082')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:09:28.464130')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:09:28.465854')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7c2a6154e3131158621caf660a7bcddb', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:09:28.526649')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:09:28.554580', '2015-02-26 17:09:28.554580')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:09:28.608326')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:28.636742')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:09:28.661421' WHERE `dispatched_services`.`id` = 9
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.2ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
Completed 200 OK in 256ms (Views: 19.8ms | ActiveRecord: 65.7ms)
Started GET "/borrow_direct/BorrowDirect/9" for 127.0.0.1 at 2015-02-26 12:09:28 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:28.720949')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 28ms (ActiveRecord: 19.9ms)
Started GET "/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A28-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:09:28 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"9", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:09:28-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m [["request_id", 9]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1 [["id", 9]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m [["id", 9]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.8ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 40ms (Views: 19.5ms | ActiveRecord: 10.3ms)
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0340839194452aa2b61535d05d3a82e0' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:28.834333')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:09:28.836271')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 10, '2015-02-26 17:09:28.838155')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 10, '2015-02-26 17:09:28.839902')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0340839194452aa2b61535d05d3a82e0', 'e7e9149c1fdfcd3be6736b651a0064bb', 10, '0.0.0.0', '2015-02-26 17:09:28.860277')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (10, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:09:28.882772')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:28.904287')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 10, '2015-02-26 17:09:28.926928', '2015-02-26 17:09:28.926928')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c94814f0067a9cc85e913e42ff56bba9' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:09:28.972044')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:09:28.974170')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 11, '2015-02-26 17:09:28.975987')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 11, '2015-02-26 17:09:28.977844')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 11, '2015-02-26 17:09:28.979547')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 11, '2015-02-26 17:09:28.981112')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 11, '2015-02-26 17:09:28.982757')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 11, '2015-02-26 17:09:28.984568')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 11, '2015-02-26 17:09:28.986392')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 11, '2015-02-26 17:09:28.988138')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 11, '2015-02-26 17:09:28.989903')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c94814f0067a9cc85e913e42ff56bba9', '06d451b80bf9fe3ce6849a48c98522d7', 11, 'info:sid/google', '0.0.0.0', '2015-02-26 17:09:29.010203')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2015-02-26 17:09:29.034146', '2015-02-26 17:09:29.034146')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mServiceResponse Exists (1.5ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 11 LIMIT 1
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '77135f8377a9eef0aa7241f0dc7453bf' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:09:29.071322')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:09:29.073371')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 12, '2015-02-26 17:09:29.075344')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 12, '2015-02-26 17:09:29.077312')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '77135f8377a9eef0aa7241f0dc7453bf', '62590701c6f35b45309577ef8c8c22b4', 12, '0.0.0.0', '2015-02-26 17:09:29.098863')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:09:29.121329')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '971f62d9dd5f845e74a406213d41842e' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:09:29.157950')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 13, '2015-02-26 17:09:29.160058')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 13, '2015-02-26 17:09:29.161852')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 13, '2015-02-26 17:09:29.163754')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 13, '2015-02-26 17:09:29.165562')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 13, '2015-02-26 17:09:29.167408')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 13, '2015-02-26 17:09:29.169158')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '971f62d9dd5f845e74a406213d41842e', 'd95884a882a64501650fb8f9deae5104', 13, 'info:sid/google', '0.0.0.0', '2015-02-26 17:09:29.188934')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:09:29.213853')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2015-02-26 17:09:29.235723', '2015-02-26 17:09:29.235723')
[1m[36m (42.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '3edd084eae4785159fb051bd450512f3' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:29.291664')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:09:29.293710')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-02-26 17:09:29.295542')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '3edd084eae4785159fb051bd450512f3', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2015-02-26 17:09:29.314966')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.339492')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2015-02-26 17:09:29.402867', '2015-02-26 17:09:29.402867')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '474fb44fbd30305f57dda69d00a0edd9' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:29.431238')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:09:29.433446')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 15, '2015-02-26 17:09:29.435521')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '474fb44fbd30305f57dda69d00a0edd9', '1f2487b5ab29a0f58587335258d7f8e0', 15, '0.0.0.0', '2015-02-26 17:09:29.454786')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.479622')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 15, '2015-02-26 17:09:29.506365', '2015-02-26 17:09:29.506365')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:09:29.531871' WHERE `dispatched_services`.`id` = 14[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e34527beab711aacb4da1c0261f03cbe' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:09:29.588327')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:09:29.590423')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 16, '2015-02-26 17:09:29.592217')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e34527beab711aacb4da1c0261f03cbe', '9902a1d22a141a826ae31b1c83cb928c', 16, '0.0.0.0', '2015-02-26 17:09:29.611734')[0m
[1m[35m (13.2ms)[0m COMMIT
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.635944')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 16, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:09:29.664806')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2015-02-26 17:09:29.687805', '2015-02-26 17:09:29.687805')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8dfbd9d4dacb5906c7e20a960ccdd057' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:09:29.715653')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:09:29.717625')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 17, '2015-02-26 17:09:29.719513')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8dfbd9d4dacb5906c7e20a960ccdd057', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 17, '0.0.0.0', '2015-02-26 17:09:29.739012')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.763378')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 17, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:09:29.788805')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 17, '2015-02-26 17:09:29.810379', '2015-02-26 17:09:29.810379')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7ea747db59f8a24c8a119041416f1111' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:09:29.838286')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:09:29.840307')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 18, '2015-02-26 17:09:29.842176')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7ea747db59f8a24c8a119041416f1111', '1f2487b5ab29a0f58587335258d7f8e0', 18, '0.0.0.0', '2015-02-26 17:09:29.861219')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:09:29.929214')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 18, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:09:29.956896')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2015-02-26 17:09:29.981379', '2015-02-26 17:09:29.981379')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9089cdf3bb80066b893daf0a66013f77' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.022626')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:09:30.024922')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2015-02-26 17:09:30.026853')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9089cdf3bb80066b893daf0a66013f77', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2015-02-26 17:09:30.049120')[0m
[1m[35m (14.7ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 19
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 19\n', 19, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.076202')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
Redirected to http://test.host/resolve?umlaut.request_id=19&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.3ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '20e8840cad00171a4c3dc768c158e2ad' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.105611')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:09:30.107594')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2015-02-26 17:09:30.109473')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '20e8840cad00171a4c3dc768c158e2ad', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2015-02-26 17:09:30.128712')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 20, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.150349')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 29
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 29\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.175786')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Redirected to http://test.host/resolve?umlaut.request_id=20&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.5ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a4dcb5549636febb954393fabe95591b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.206558')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:09:30.208636')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2015-02-26 17:09:30.210696')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a4dcb5549636febb954393fabe95591b', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2015-02-26 17:09:30.230241')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 21, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.251223')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2015-02-26 17:09:30.277943', '2015-02-26 17:09:30.277943')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 21, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.299148')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (1.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Redirected to http://test.host/resolve?umlaut.request_id=21&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 52ms (ActiveRecord: 40.8ms)
[1m[35mDispatchedService Load (4.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (6.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:30.340887' WHERE `dispatched_services`.`id` = 18
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 32[0m
[1m[35m (14.2ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b0f1fadedd1238bb5e32cf2dfce0827' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.387295')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:09:30.389494')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:09:30.391232')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5b0f1fadedd1238bb5e32cf2dfce0827', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:09:30.411327')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 22, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.433560')[0m
[1m[35m (13.8ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 22, '2015-02-26 17:09:30.460224', '2015-02-26 17:09:30.460224')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.524465')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Redirected to http://example.org
Completed 302 Found in 99ms (ActiveRecord: 40.2ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5a1985779600abdd0b88da85e0bda8dd' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.559936')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:09:30.562081')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2015-02-26 17:09:30.564020')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5a1985779600abdd0b88da85e0bda8dd', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2015-02-26 17:09:30.583810')[0m
[1m[35m (16.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 23, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.607259')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 23, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.633500')[0m
[1m[35m (15.0ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 26ms (ActiveRecord: 19.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1c389a461bf33e1e63d6ac689267e38b' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.660646')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:09:30.662493')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2015-02-26 17:09:30.664171')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1c389a461bf33e1e63d6ac689267e38b', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2015-02-26 17:09:30.685279')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 24, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:09:30.707416')[0m
[1m[35m (14.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2015-02-26 17:09:30.734564', '2015-02-26 17:09:30.734564')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 24, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.755875')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 53ms (Views: 0.4ms | ActiveRecord: 39.5ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0e189e44f66550a0102771cc84db8f28' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (6.8ms)[0m BEGIN
[1m[36m (3.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (10.9ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:09:30.796485')
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:09:30.798948' WHERE `dispatched_services`.`id` = 20[0m
[1m[35mSQL (4.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:09:30.808478')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2015-02-26 17:09:30.813743')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mSQL (1.6ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 38[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0e189e44f66550a0102771cc84db8f28', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2015-02-26 17:09:30.836032')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 25, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:09:30.862634')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://test.host/resolve?umlaut.request_id=25&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A09%3A30-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 21.1ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '9873834d0db6bc8fd7f69eb94ae396b2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:30.896487')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:09:30.898449')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2015-02-26 17:09:30.900861')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2015-02-26 17:09:30.902524')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '9873834d0db6bc8fd7f69eb94ae396b2', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2015-02-26 17:09:30.923824')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 26, 'test_holding', 'holding', '2015-02-26 17:09:30.947239')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:30.976130')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:09:30.998712', '2015-02-26 17:09:30.998712')
[1m[36m (18.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '412d1f75e61ebe50ab162417e3e96ce2' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:31.030651')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:09:31.032623')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2015-02-26 17:09:31.034474')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2015-02-26 17:09:31.036272')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '412d1f75e61ebe50ab162417e3e96ce2', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2015-02-26 17:09:31.055925')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 27, 'test_holding', 'holding', '2015-02-26 17:09:31.076756')
[1m[36m (20.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:09:31.156019')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (2.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:09:31.179609', '2015-02-26 17:09:31.179609')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b930ef7aa7c3ddd3f06122bd2e56fe3b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:09:31.208073')[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:09:31.210294')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2015-02-26 17:09:31.213244')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2015-02-26 17:09:31.215460')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b930ef7aa7c3ddd3f06122bd2e56fe3b', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2015-02-26 17:09:31.237319')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 28, 'test_holding', 'holding', '2015-02-26 17:09:31.258721')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-02-26 17:09:31.286122', '2015-02-26 17:09:31.286122')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[35m (0.9ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[36mActiveRecord::SchemaMigration Load (2.5ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (105.0ms)[0m [1mDROP DATABASE IF EXISTS `umlaut3_test`[0m
[1m[35m (9.2ms)[0m CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (45.8ms)[0m [1mCREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB[0m
[1m[35m (80.8ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (79.9ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (92.8ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (38.6ms)[0m [1mCREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (74.2ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (37.2ms)[0m [1mCREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB[0m
[1m[35m (67.2ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (36.8ms)[0m [1mCREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (77.8ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (67.9ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (36.2ms)[0m CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB
[1m[36m (84.9ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (101.5ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (80.4ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (79.1ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (93.9ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (77.0ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (34.7ms)[0m [1mCREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB[0m
[1m[35m (76.8ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (73.2ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (80.8ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (34.4ms)[0m [1mCREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB[0m
[1m[35m (73.6ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (84.5ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (35.0ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (79.2ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (71.0ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (35.1ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (76.9ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (34.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (102.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (1.2ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (15.0ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (1.1ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '73a7c1fce9a574ce8c1f5c9340a97f26' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:29.550791')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:16:29.553299')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:16:29.555141')[0m
[1m[35m (22.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '73a7c1fce9a574ce8c1f5c9340a97f26', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2015-02-26 17:16:29.777184')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:29.819175')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:16:29.854508', '2015-02-26 17:16:29.854508')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:29 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd067e2e06388c57d43afed71a7ba6bcc' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:29.964179')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:16:29.966191')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2015-02-26 17:16:29.968016')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd067e2e06388c57d43afed71a7ba6bcc', '1f2487b5ab29a0f58587335258d7f8e0', 2, '127.0.0.1', '2015-02-26 17:16:29.988020')
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 2, '2015-02-26 17:16:30.020206', '2015-02-26 17:16:30.020206')
[1m[36m (22.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:30.144292')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:16:30.174955' WHERE `dispatched_services`.`id` = 2
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mDispatchedService Load (7.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (51.4ms)
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.2ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (9.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (115.1ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 479ms (Views: 162.9ms | ActiveRecord: 77.8ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:16:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '62c80e59c7b10e9a118b2b51c8609bdc' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:16:30.394765')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2015-02-26 17:16:30.396882')[0m
[1m[35mSQL (2.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2015-02-26 17:16:30.398657')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 3, '2015-02-26 17:16:30.401470')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 3, '2015-02-26 17:16:30.403179')
[1m[36m (15.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '62c80e59c7b10e9a118b2b51c8609bdc', 'a03fb1fb17f24f5ea845bf6c4450490b', 3, '127.0.0.1', '2015-02-26 17:16:30.424897')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:16:30.488855', '2015-02-26 17:16:30.488855')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:16:30.541326')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:30.565430' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.0ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 230ms (Views: 18.5ms | ActiveRecord: 71.6ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:16:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7bed5af352336c4ca4f9e468088e240a' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:16:30.632382')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-02-26 17:16:30.634604')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 4, '2015-02-26 17:16:30.636648')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:16:30.638368')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 4, '2015-02-26 17:16:30.640423')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '7bed5af352336c4ca4f9e468088e240a', 'bc13b80c2923ce2cbe0c8347141587a7', 4, '127.0.0.1', '2015-02-26 17:16:30.661682')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 4, '2015-02-26 17:16:30.688656', '2015-02-26 17:16:30.688656')
[1m[36m (16.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (4)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (4) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (4)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:30.741449' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.1ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 162ms (Views: 16.0ms | ActiveRecord: 69.3ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '44b4062737f1f7dd9153f72add51430d' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:16:30.798239')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 5, '2015-02-26 17:16:30.800384')
[1m[36mSQL (38.6ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 5, '2015-02-26 17:16:30.802177')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 5, '2015-02-26 17:16:30.842081')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '44b4062737f1f7dd9153f72add51430d', '318e542032e1812e600e07efbdb1dfcc', 5, '0.0.0.0', '2015-02-26 17:16:30.862960')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 5, '2015-02-26 17:16:30.886033', '2015-02-26 17:16:30.886033')[0m
[1m[35m (16.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=5" for 127.0.0.1 at 2015-02-26 12:16:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"5"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mRequest Load (0.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.7ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m [["id", 5]]
[1m[35mCACHE (0.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.6ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 37ms (Views: 16.7ms | ActiveRecord: 11.5ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:30 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '97020c4a9a2b9ddf2b4676f23595b8a8' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:30.973972')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:16:30.976035')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2015-02-26 17:16:30.977917')
[1m[36m (17.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '97020c4a9a2b9ddf2b4676f23595b8a8', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2015-02-26 17:16:31.000919')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:16:31.030940', '2015-02-26 17:16:31.030940')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:31.084126')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 6, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:31.113881')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:31.138927' WHERE `dispatched_services`.`id` = 6
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (9.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (11.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (12.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (31.0ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
Completed 200 OK in 229ms (Views: 23.9ms | ActiveRecord: 77.4ms)
Started GET "/borrow_direct/BorrowDirect/6?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:16:31 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (0.9ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:16:31.246522' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 6, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:31.266185')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 50ms (ActiveRecord: 38.2ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:16:31.300525' WHERE `dispatched_services`.`id` = 6
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 6[0m
[1m[35m (14.4ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:16:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"6", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:16:31-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 [["request_id", 6]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.9ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 40ms (Views: 18.9ms | ActiveRecord: 12.0ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:16:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '09b9076b6d13907c4d31b3c6b50602e6' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:16:31.397515')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:16:31.399686')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 7, '2015-02-26 17:16:31.401519')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '09b9076b6d13907c4d31b3c6b50602e6', '9902a1d22a141a826ae31b1c83cb928c', 7, '127.0.0.1', '2015-02-26 17:16:31.422523')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:16:31.449163', '2015-02-26 17:16:31.449163')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.6ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:31.502629')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 7, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:16:31.529679')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:31.551198' WHERE `dispatched_services`.`id` = 7
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mReferent Load (40.6ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (44.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (61.1ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 19.0ms | ActiveRecord: 106.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:31 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '038c52afbe524242b52c490909dedad1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.8ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:31.654674')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:16:31.658373')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:16:31.660332')
[1m[36m (17.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '038c52afbe524242b52c490909dedad1', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:16:31.683734')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:16:31.713164', '2015-02-26 17:16:31.713164')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.2ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:31.766335')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:31.795407')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:31.820228' WHERE `dispatched_services`.`id` = 8
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.1ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 222ms (Views: 20.0ms | ActiveRecord: 73.9ms)
Started GET "/borrow_direct/BorrowDirect/8?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:16:31 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:16:31.881741' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 8, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:31.939054')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 89ms (ActiveRecord: 40.7ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:31.973664' WHERE `dispatched_services`.`id` = 8
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 11[0m
[1m[35m (14.7ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A31-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:16:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"8", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:16:31-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 [["request_id", 8]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m [["id", 8]]
[1m[35mCACHE (0.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.1ms)
[1m[36mPermalink Load (0.8ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 37ms (Views: 15.7ms | ActiveRecord: 11.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '25fb2828db426a11e9abe91295572d34' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:32.063430')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:16:32.065576')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:16:32.067384')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '25fb2828db426a11e9abe91295572d34', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:16:32.088060')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:16:32.114979', '2015-02-26 17:16:32.114979')[0m
[1m[35m (15.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.3ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:32.169533')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:32.197601')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:32.222680' WHERE `dispatched_services`.`id` = 9
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.8ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.8ms)
[1m[35mPermalink Load (1.0ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
Completed 200 OK in 217ms (Views: 20.1ms | ActiveRecord: 68.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:16:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ebda6771b35fcd744a6b3ad65f7a216c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:32.330295')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:16:32.332422')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2015-02-26 17:16:32.334409')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ebda6771b35fcd744a6b3ad65f7a216c', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2015-02-26 17:16:32.355074')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2015-02-26 17:16:32.382633', '2015-02-26 17:16:32.382633')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.3ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:16:32.437915')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 10, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:32.466227')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:16:32.490938' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.8ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 219ms (Views: 19.8ms | ActiveRecord: 69.8ms)
Started GET "/borrow_direct/BorrowDirect/10" for 127.0.0.1 at 2015-02-26 12:16:32 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 10, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:32.552082')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Redirected to http://www.example.com/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 20.5ms)
Started GET "/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:16:32 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"10", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:16:32-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 [["request_id", 10]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m [["id", 10]]
[1m[35mCACHE (0.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (3.4ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (58.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 79ms (Views: 57.8ms | ActiveRecord: 11.8ms)
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.3ms | ActiveRecord: 1.1ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f77acc5f70e0959eadb4426ece2bd9dc' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:32.682748')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:16:32.685003')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2015-02-26 17:16:32.686735')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f77acc5f70e0959eadb4426ece2bd9dc', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2015-02-26 17:16:32.706866')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 11
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 11\n', 11, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:32.732943')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)[0m
Redirected to http://test.host/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.3ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e036fb29857bca04d39939b2461f7421' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:32.762273')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:16:32.764237')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2015-02-26 17:16:32.766059')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e036fb29857bca04d39939b2461f7421', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2015-02-26 17:16:32.785604')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 12, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:32.806601')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 18
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 18\n', 12, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:32.836581')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Redirected to http://test.host/resolve?umlaut.request_id=12&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 22.0ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd6a684d9a2d8c8e60817a2f0fd2a7848' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:32.867405')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:16:32.869308')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2015-02-26 17:16:32.871215')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd6a684d9a2d8c8e60817a2f0fd2a7848', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2015-02-26 17:16:32.891157')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 13, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:32.912617')[0m
[1m[35m (14.3ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 13, '2015-02-26 17:16:32.939995', '2015-02-26 17:16:32.939995')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 13, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:32.961355')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 13 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (13)[0m
Redirected to http://test.host/resolve?umlaut.request_id=13&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A32-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 52ms (ActiveRecord: 40.8ms)
[1m[35mDispatchedService Load (2.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mServiceResponse Load (4.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:16:33.003572' WHERE `dispatched_services`.`id` = 11
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 21[0m
[1m[35m (14.3ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30cadf4b5035049d616d27e34e103dda' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:33.090387')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:16:33.092574')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2015-02-26 17:16:33.094470')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '30cadf4b5035049d616d27e34e103dda', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2015-02-26 17:16:33.114406')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 14, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:33.135150')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 14, '2015-02-26 17:16:33.162334', '2015-02-26 17:16:33.162334')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 14, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:33.183697')
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)[0m
Redirected to http://example.org
Completed 302 Found in 57ms (ActiveRecord: 43.5ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8e03c6bbe9b092ea875b70d8ba62cc40' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:33.220055')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:16:33.222120')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2015-02-26 17:16:33.224032')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8e03c6bbe9b092ea875b70d8ba62cc40', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2015-02-26 17:16:33.243455')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 15, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:33.265050')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 15, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:33.291339')[0m
[1m[35m (14.7ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 26ms (ActiveRecord: 19.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6104f78f2a58b2ff01661f2a482c7152' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:33.318170')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:16:33.320106')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2015-02-26 17:16:33.321849')[0m
[1m[35m (17.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6104f78f2a58b2ff01661f2a482c7152', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2015-02-26 17:16:33.345282')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 16, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:16:33.367284')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 16, '2015-02-26 17:16:33.396016', '2015-02-26 17:16:33.396016')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 16, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:33.460692')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 100ms (Views: 3.5ms | ActiveRecord: 42.9ms)
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '88442d6d6147ff29261e1516f96270c1' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (6.1ms)[0m BEGIN
[1m[36m (4.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (9.8ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:16:33.505838')
[1m[36mSQL (1.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:16:33.508213' WHERE `dispatched_services`.`id` = 13[0m
[1m[35mSQL (3.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:16:33.516735')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2015-02-26 17:16:33.521090')[0m
[1m[35m (15.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mSQL (2.0ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 27[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '88442d6d6147ff29261e1516f96270c1', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2015-02-26 17:16:33.543165')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 17, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:33.569563')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Redirected to http://test.host/resolve?umlaut.request_id=17&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A16%3A33-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.2ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '232493e36789b9ba0c2bc828babd0a35' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:16:33.601749')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:16:33.603745')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2015-02-26 17:16:33.605616')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2015-02-26 17:16:33.607359')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '232493e36789b9ba0c2bc828babd0a35', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2015-02-26 17:16:33.626580')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 18, 'test_holding', 'holding', '2015-02-26 17:16:33.692617')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2015-02-26 17:16:33.720021', '2015-02-26 17:16:33.720021')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '397f165dcbe6ff9217b38b50987db0b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:16:33.748171')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:16:33.750284')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 19, '2015-02-26 17:16:33.752244')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 19, '2015-02-26 17:16:33.754007')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '397f165dcbe6ff9217b38b50987db0b3', 'e7e9149c1fdfcd3be6736b651a0064bb', 19, '0.0.0.0', '2015-02-26 17:16:33.773583')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 19, 'test_holding', 'holding', '2015-02-26 17:16:33.794540')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 19, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:16:33.822429')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 19, '2015-02-26 17:16:33.844111', '2015-02-26 17:16:33.844111')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1b2774634b0e67ba73f05e3334a1de1b' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:16:33.872149')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:16:33.874292')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 20, '2015-02-26 17:16:33.876432')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 20, '2015-02-26 17:16:33.878276')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1b2774634b0e67ba73f05e3334a1de1b', 'e7e9149c1fdfcd3be6736b651a0064bb', 20, '0.0.0.0', '2015-02-26 17:16:33.898351')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 20, 'test_holding', 'holding', '2015-02-26 17:16:33.919887')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 20, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:16:33.948207')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 20, '2015-02-26 17:16:33.969876', '2015-02-26 17:16:33.969876')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 20[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '4e5ab32109a143ea0bfe27918592e7a8' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:16:34.006121')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:16:34.008349')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 21, '2015-02-26 17:16:34.010103')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 21, '2015-02-26 17:16:34.011907')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '4e5ab32109a143ea0bfe27918592e7a8', '62590701c6f35b45309577ef8c8c22b4', 21, '0.0.0.0', '2015-02-26 17:16:34.032028')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 21, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:16:34.054915')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e6e32d247f7a489f4e615c38b85d161e' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:16:34.094449')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:16:34.096708')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 22, '2015-02-26 17:16:34.098617')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 22, '2015-02-26 17:16:34.100473')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 22, '2015-02-26 17:16:34.102319')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 22, '2015-02-26 17:16:34.104463')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 22, '2015-02-26 17:16:34.106211')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 22, '2015-02-26 17:16:34.107934')[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 22, '2015-02-26 17:16:34.109522')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 22, '2015-02-26 17:16:34.111563')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 22, '2015-02-26 17:16:34.113701')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e6e32d247f7a489f4e615c38b85d161e', '06d451b80bf9fe3ce6849a48c98522d7', 22, 'info:sid/google', '0.0.0.0', '2015-02-26 17:16:34.134538')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 22, '2015-02-26 17:16:34.156955', '2015-02-26 17:16:34.156955')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22[0m
[1m[35mServiceResponse Exists (1.0ms)[0m SELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 22 LIMIT 1
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8d671db17fd6c67bf28e4d2e4a4c43aa' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:16:34.198157')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 23, '2015-02-26 17:16:34.200266')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 23, '2015-02-26 17:16:34.202185')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 23, '2015-02-26 17:16:34.204092')
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 23, '2015-02-26 17:16:34.206080')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 23, '2015-02-26 17:16:34.208381')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 23, '2015-02-26 17:16:34.210090')[0m
[1m[35m (15.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8d671db17fd6c67bf28e4d2e4a4c43aa', 'd95884a882a64501650fb8f9deae5104', 23, 'info:sid/google', '0.0.0.0', '2015-02-26 17:16:34.231601')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:16:34.302572')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 23, '2015-02-26 17:16:34.324733', '2015-02-26 17:16:34.324733')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 23
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f58aa7f5c7dec8d5e93d90dbb6768a87' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:16:34.354358')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:16:34.356416')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 24, '2015-02-26 17:16:34.358356')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 24, '2015-02-26 17:16:34.360143')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f58aa7f5c7dec8d5e93d90dbb6768a87', 'e7e9149c1fdfcd3be6736b651a0064bb', 24, '0.0.0.0', '2015-02-26 17:16:34.379220')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (24, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:16:34.399562')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 24, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:16:34.420410')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2015-02-26 17:16:34.442715', '2015-02-26 17:16:34.442715')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f9749f69dec8c68bea35eb693898738b' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:34.480600')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:16:34.482558')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 25, '2015-02-26 17:16:34.484310')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f9749f69dec8c68bea35eb693898738b', '1f2487b5ab29a0f58587335258d7f8e0', 25, '0.0.0.0', '2015-02-26 17:16:34.504079')
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"2DLcMfktU7VhK9f2Ph2IlJgux-o","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/returns_a_link_when_BD_returns_an_error.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 1 HTTP interaction that has not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mServiceResponse Load (9.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC
[1m[36mSQL (3.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"2DLcMfktU7VhK9f2Ph2IlJgux-o\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/BorrowDirectAdaptor/with_live_connection_to_BD/returns_a_link_when_BD_returns_an_error.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n * The cassette contains 1 HTTP interaction\n that has not been\\n played back. If your request is non-deterministic, you may\n need to\\n change your :match_requests_on cassette option to be more lenient\\n\n \\ or use a custom request matcher to allow it to match [5].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n[5] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/request-matching\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:16:34.524676' WHERE `dispatched_services`.`id` = 12[0m
[1m[35m (3.0ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:34.539708')[0m
[1m[35m (15.8ms)[0m COMMIT
ServiceResponses skipped for unknown service_ids: BorrowDirect
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (16.0ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mSQL (4.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n', 14, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:16:34.557688')[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 25, '2015-02-26 17:16:34.567356', '2015-02-26 17:16:34.567356')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (13.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.3ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:16:34.591850' WHERE `dispatched_services`.`id` = 20
[1m[36m (15.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bc985c0f73848fb732f7704bc7e3dfaf' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:16:34.698959')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:16:34.701079')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 26, '2015-02-26 17:16:34.703082')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bc985c0f73848fb732f7704bc7e3dfaf', '9902a1d22a141a826ae31b1c83cb928c', 26, '0.0.0.0', '2015-02-26 17:16:34.722850')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:34.747434')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 26, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:16:34.774712')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:16:34.795720', '2015-02-26 17:16:34.795720')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8cac2c98c84cb5c91ee957adf8872673' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:16:34.824390')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:16:34.826350')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 27, '2015-02-26 17:16:34.828258')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8cac2c98c84cb5c91ee957adf8872673', '1f2487b5ab29a0f58587335258d7f8e0', 27, '0.0.0.0', '2015-02-26 17:16:34.848655')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:34.873246')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 27, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:16:34.899937')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:16:34.924302', '2015-02-26 17:16:34.924302')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b7bfd325f04df9b6e12c88185b8685bb' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:16:34.952246')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:16:34.954427')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 28, '2015-02-26 17:16:34.956161')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b7bfd325f04df9b6e12c88185b8685bb', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 28, '0.0.0.0', '2015-02-26 17:16:34.975442')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:16:35.000727')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 28, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:16:35.026520')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-02-26 17:16:35.049157', '2015-02-26 17:16:35.049157')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28[0m
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (107.3ms)[0m [1mDROP DATABASE IF EXISTS `umlaut3_test`[0m
[1m[35m (5.9ms)[0m CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (40.9ms)[0m [1mCREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB[0m
[1m[35m (89.0ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (73.3ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (74.6ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (36.8ms)[0m [1mCREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (74.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (34.2ms)[0m [1mCREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB[0m
[1m[35m (67.7ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (34.8ms)[0m [1mCREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (80.8ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (72.7ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (34.7ms)[0m CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB
[1m[36m (76.1ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (82.4ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (80.9ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (79.6ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (81.4ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (95.3ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (34.7ms)[0m [1mCREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB[0m
[1m[35m (82.5ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (71.9ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (77.6ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (44.1ms)[0m [1mCREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB[0m
[1m[35m (77.5ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (89.2ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (45.3ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (77.1ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (70.2ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (44.8ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (80.7ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (52.0ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (89.8ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (1.9ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (15.6ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (1.2ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '80550b623b838027a8cf1ce2ff0e825e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:08.993412')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:17:08.996003')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:17:08.997890')[0m
[1m[35m (23.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '80550b623b838027a8cf1ce2ff0e825e', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2015-02-26 17:17:09.222915')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:09.264200')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:17:09.298346', '2015-02-26 17:17:09.298346')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dfb795e50aa54d39f17183fe2dac01f1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:09.408343')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:17:09.410472')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2015-02-26 17:17:09.412318')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'dfb795e50aa54d39f17183fe2dac01f1', '1f2487b5ab29a0f58587335258d7f8e0', 2, '127.0.0.1', '2015-02-26 17:17:09.432764')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 2, '2015-02-26 17:17:09.464059', '2015-02-26 17:17:09.464059')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.8ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:09.582411')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:17:09.612513' WHERE `dispatched_services`.`id` = 2
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mDispatchedService Load (8.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (49.5ms)
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (6.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.3ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (5.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (112.9ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (10.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 474ms (Views: 164.6ms | ActiveRecord: 70.4ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:17:09 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '347c268186b98cc13b487f19ca146523' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:17:09.834178')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2015-02-26 17:17:09.836268')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2015-02-26 17:17:09.838084')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 3, '2015-02-26 17:17:09.839778')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 3, '2015-02-26 17:17:09.841349')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '347c268186b98cc13b487f19ca146523', 'a03fb1fb17f24f5ea845bf6c4450490b', 3, '127.0.0.1', '2015-02-26 17:17:09.898970')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:17:09.927360', '2015-02-26 17:17:09.927360')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:17:09.981028')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:10.003102' WHERE `dispatched_services`.`id` = 3[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.1ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 229ms (Views: 19.5ms | ActiveRecord: 70.3ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:17:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '30998c056e95e00aa8559b2573663be7' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:17:10.070811')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-02-26 17:17:10.072916')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 4, '2015-02-26 17:17:10.074807')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:17:10.076479')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 4, '2015-02-26 17:17:10.078222')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '30998c056e95e00aa8559b2573663be7', 'bc13b80c2923ce2cbe0c8347141587a7', 4, '127.0.0.1', '2015-02-26 17:17:10.098586')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 4, '2015-02-26 17:17:10.125210', '2015-02-26 17:17:10.125210')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (4)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (4) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (4)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:10.176634' WHERE `dispatched_services`.`id` = 4[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.7ms)
[1m[35mPermalink Load (1.2ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 161ms (Views: 17.4ms | ActiveRecord: 65.0ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[36mRequest Load (39.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '15bc2eb0efe5f7dea643ab7aff47dd97' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:17:10.274748')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 5, '2015-02-26 17:17:10.277099')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 5, '2015-02-26 17:17:10.278860')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 5, '2015-02-26 17:17:10.280667')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '15bc2eb0efe5f7dea643ab7aff47dd97', '318e542032e1812e600e07efbdb1dfcc', 5, '0.0.0.0', '2015-02-26 17:17:10.300799')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 5, '2015-02-26 17:17:10.324979', '2015-02-26 17:17:10.324979')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=5" for 127.0.0.1 at 2015-02-26 12:17:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"5"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 [["request_id", 5]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m [["id", 5]]
[1m[35mCACHE (0.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.8ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 38ms (Views: 17.4ms | ActiveRecord: 12.1ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'fa835467f8575686955b67ab58dacf22' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:10.407816')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:17:10.409935')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2015-02-26 17:17:10.411906')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'fa835467f8575686955b67ab58dacf22', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2015-02-26 17:17:10.432943')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:17:10.460593', '2015-02-26 17:17:10.460593')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.0ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:10.514646')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 6, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:10.543959')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:10.568215' WHERE `dispatched_services`.`id` = 6
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1 [["id", 6]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (25.6ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (1.0ms)[0m COMMIT
Completed 200 OK in 257ms (Views: 23.6ms | ActiveRecord: 67.4ms)
Started GET "/borrow_direct/BorrowDirect/6?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:17:10 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:17:10.671593' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 6, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:10.691603')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 50ms (ActiveRecord: 38.6ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:10.726242' WHERE `dispatched_services`.`id` = 6
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 6[0m
[1m[35m (14.3ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A10-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"6", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:10-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 [["request_id", 6]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m [["id", 6]]
[1m[35mCACHE (0.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.2ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 40ms (Views: 18.8ms | ActiveRecord: 11.6ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:17:10 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a70867c74fbe3f08e0e8c6524419dc16' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:17:10.825354')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:17:10.827499')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 7, '2015-02-26 17:17:10.829427')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'a70867c74fbe3f08e0e8c6524419dc16', '9902a1d22a141a826ae31b1c83cb928c', 7, '127.0.0.1', '2015-02-26 17:17:10.849842')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:17:10.876503', '2015-02-26 17:17:10.876503')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (15.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:10.931382')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 7, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:10.958856')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (36.7ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:10.981519' WHERE `dispatched_services`.`id` = 7
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (21.9ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 247ms (Views: 19.2ms | ActiveRecord: 67.0ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.1ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b22e41bffaae5dc55be13e71f88f12b1' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:11.081296')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:17:11.083687')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:17:11.085567')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b22e41bffaae5dc55be13e71f88f12b1', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:17:11.105915')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:17:11.132902', '2015-02-26 17:17:11.132902')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:11.185652')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:11.215036')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:11.239777' WHERE `dispatched_services`.`id` = 8
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1 [["id", 8]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.1ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 217ms (Views: 19.6ms | ActiveRecord: 68.6ms)
Started GET "/borrow_direct/BorrowDirect/8?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:17:11 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:17:11.341401' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 8, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:11.361214')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 88ms (ActiveRecord: 39.0ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:11.394012' WHERE `dispatched_services`.`id` = 8
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 11[0m
[1m[35m (14.1ms)[0m COMMIT
Started GET "/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A11-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"8", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:11-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36mRequest Load (0.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 [["request_id", 8]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m [["id", 8]]
[1m[35mCACHE (0.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (16.4ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 39ms (Views: 16.7ms | ActiveRecord: 11.9ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd80faa0117501dd6995f38654465442d' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:11.484357')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:17:11.486508')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:17:11.488452')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'd80faa0117501dd6995f38654465442d', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:17:11.509703')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:17:11.536427', '2015-02-26 17:17:11.536427')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.7ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:11.594939')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:11.624095')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:11.648865' WHERE `dispatched_services`.`id` = 9
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1 [["id", 9]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (5.7ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (28.0ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 226ms (Views: 22.0ms | ActiveRecord: 69.4ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:11 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ca6943368af1f591f8b24d670f19b920' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:11.760255')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:17:11.762472')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2015-02-26 17:17:11.764305')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'ca6943368af1f591f8b24d670f19b920', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2015-02-26 17:17:11.785176')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2015-02-26 17:17:11.812165', '2015-02-26 17:17:11.812165')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.4ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:11.867391')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 10, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:11.896419')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:11.922204' WHERE `dispatched_services`.`id` = 10[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.2ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m [["id", 10]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.8ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 219ms (Views: 19.5ms | ActiveRecord: 68.3ms)
Started GET "/borrow_direct/BorrowDirect/10" for 127.0.0.1 at 2015-02-26 12:17:11 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 10, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:11.984144')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Redirected to http://www.example.com/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 29ms (ActiveRecord: 20.0ms)
Started GET "/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:12 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"10", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:12-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (0.9ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (0.9ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mCACHE (0.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 [["request_id", 10]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m [["id", 10]]
[1m[35mCACHE (0.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (38.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 [["id", 10]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (0.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (55.2ms)
[1m[35mPermalink Load (0.8ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 76ms (Views: 55.8ms | ActiveRecord: 10.7ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[35m (0.6ms)[0m ROLLBACK
[1m[36m (0.6ms)[0m [1mBEGIN[0m
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[35m (0.8ms)[0m ROLLBACK
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7073849b5d7ed7b1862caf4f51a3b960' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:12.103949')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:17:12.106012')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 11, '2015-02-26 17:17:12.107947')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7073849b5d7ed7b1862caf4f51a3b960', '1f2487b5ab29a0f58587335258d7f8e0', 11, '0.0.0.0', '2015-02-26 17:17:12.127732')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 11, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:12.152326')
[1m[36m (15.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 11, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:12.179672')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2015-02-26 17:17:12.205080', '2015-02-26 17:17:12.205080')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b72df8effcdca7968cfdc4a5cd809403' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:17:12.232892')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:17:12.234941')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 12, '2015-02-26 17:17:12.236632')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'b72df8effcdca7968cfdc4a5cd809403', '9902a1d22a141a826ae31b1c83cb928c', 12, '0.0.0.0', '2015-02-26 17:17:12.255845')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mServiceResponse Load (1.7ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:12.281748')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 12, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:12.309089')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2015-02-26 17:17:12.331589', '2015-02-26 17:17:12.331589')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8901f39f8b6b547a87032bbb4b1b6a22' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:17:12.359711')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:17:12.361794')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 13, '2015-02-26 17:17:12.363758')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8901f39f8b6b547a87032bbb4b1b6a22', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 13, '0.0.0.0', '2015-02-26 17:17:12.383495')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:12.409488')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 13, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:12.435890')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2015-02-26 17:17:12.458239', '2015-02-26 17:17:12.458239')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13[0m
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '45e090559e6936dc0000db291ab49f85' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:12.487362')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:17:12.489353')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 14, '2015-02-26 17:17:12.491244')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '45e090559e6936dc0000db291ab49f85', '1f2487b5ab29a0f58587335258d7f8e0', 14, '0.0.0.0', '2015-02-26 17:17:12.552383')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:12.578133')[0m
[1m[35m (14.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 14, '2015-02-26 17:17:12.606581', '2015-02-26 17:17:12.606581')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (7.4ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:17:12.632275' WHERE `dispatched_services`.`id` = 14
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'baec6403178b7a1ba7267c93d252bc60' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:12.696531')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:17:12.698497')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 15, '2015-02-26 17:17:12.700418')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 15, '2015-02-26 17:17:12.702368')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'baec6403178b7a1ba7267c93d252bc60', 'e7e9149c1fdfcd3be6736b651a0064bb', 15, '0.0.0.0', '2015-02-26 17:17:12.722113')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (15, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:17:12.744954')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:12.766761')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2015-02-26 17:17:12.788614', '2015-02-26 17:17:12.788614')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 2ms (Views: 0.2ms | ActiveRecord: 1.2ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '145b335530d0a2021e4709e07479a924' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:12.839292')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:17:12.841207')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 16, '2015-02-26 17:17:12.843106')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '145b335530d0a2021e4709e07479a924', 'e4f2e6742054acb1be6068a6078c6b4d', 16, '0.0.0.0', '2015-02-26 17:17:12.863057')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"16"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 16
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 16\n', 16, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:12.889363')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 16 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
Redirected to http://test.host/resolve?umlaut.request_id=16&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A12-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 21.7ms)
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c66806f1ce3ea609b1e6200ca327225d' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:12.959986')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:17:12.962423')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 17, '2015-02-26 17:17:12.964526')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c66806f1ce3ea609b1e6200ca327225d', 'e4f2e6742054acb1be6068a6078c6b4d', 17, '0.0.0.0', '2015-02-26 17:17:12.984981')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 17, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.006763')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"17"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 17 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 27
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 27\n', 17, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.033645')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 17 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (17)
Redirected to http://test.host/resolve?umlaut.request_id=17&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 21.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0016db700c5c90b2cddf74d0db22ade8' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.065372')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:17:13.067289')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 18, '2015-02-26 17:17:13.069262')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0016db700c5c90b2cddf74d0db22ade8', 'e4f2e6742054acb1be6068a6078c6b4d', 18, '0.0.0.0', '2015-02-26 17:17:13.089037')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 18, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.110791')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"18"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 18 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 18, '2015-02-26 17:17:13.139118', '2015-02-26 17:17:13.139118')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 18, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.165730')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 18 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (18)[0m
Redirected to http://test.host/resolve?umlaut.request_id=18&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 60ms (ActiveRecord: 47.3ms)
[1m[35mDispatchedService Load (3.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18
[1m[36mServiceResponse Load (4.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC[0m
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:13.209876' WHERE `dispatched_services`.`id` = 16
[1m[36m (19.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 30[0m
[1m[35m (14.0ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '74e212e17ff18edbe146e35571480138' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.261684')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:17:13.263937')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2015-02-26 17:17:13.265786')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '74e212e17ff18edbe146e35571480138', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2015-02-26 17:17:13.286305')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 19, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.308365')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 19 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 19, '2015-02-26 17:17:13.336234', '2015-02-26 17:17:13.336234')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 19, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.357822')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
Redirected to http://example.org
Completed 302 Found in 56ms (ActiveRecord: 40.9ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd926bf5fa1f9561b3b1eee6844a47330' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.392493')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:17:13.394672')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2015-02-26 17:17:13.396615')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd926bf5fa1f9561b3b1eee6844a47330', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2015-02-26 17:17:13.416306')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 20, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.437909')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[35mRequest Load (1.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.465867')[0m
[1m[35m (14.9ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 27ms (ActiveRecord: 20.1ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '11573adb49714a4fac0f643e8c5dd730' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.493135')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:17:13.495212')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2015-02-26 17:17:13.497379')[0m
[1m[35m (15.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '11573adb49714a4fac0f643e8c5dd730', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2015-02-26 17:17:13.518878')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 21, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:13.540806')[0m
[1m[35m (14.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2015-02-26 17:17:13.567990', '2015-02-26 17:17:13.567990')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 21, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.589363')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 96ms (Views: 0.5ms | ActiveRecord: 40.5ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17c79886df68304d24bb3fd330176812' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (6.2ms)[0m BEGIN
[1m[36m (3.5ms)[0m [1mBEGIN[0m
[1m[35mSQL (10.8ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:13.674732')
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:13.677026' WHERE `dispatched_services`.`id` = 18[0m
[1m[35mSQL (3.7ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:17:13.686567')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:17:13.691233')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36mSQL (1.9ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 36[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '17c79886df68304d24bb3fd330176812', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:17:13.715013')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:13.742650')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)
Redirected to http://test.host/resolve?umlaut.request_id=22&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A13-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.3ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '882b39dd6953c793fbfc493331332d55' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:17:13.774564')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:17:13.776591')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 23, '2015-02-26 17:17:13.778424')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 23, '2015-02-26 17:17:13.780279')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '882b39dd6953c793fbfc493331332d55', '62590701c6f35b45309577ef8c8c22b4', 23, '0.0.0.0', '2015-02-26 17:17:13.799620')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 23, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:17:13.822737')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (2.0ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '18901a7aaa21c295c0ecaac35964c8c2' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:17:13.862827')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:17:13.864984')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 24, '2015-02-26 17:17:13.866818')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 24, '2015-02-26 17:17:13.868622')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 24, '2015-02-26 17:17:13.870353')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 24, '2015-02-26 17:17:13.872160')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 24, '2015-02-26 17:17:13.873796')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 24, '2015-02-26 17:17:13.875558')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 24, '2015-02-26 17:17:13.877444')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 24, '2015-02-26 17:17:13.879265')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 24, '2015-02-26 17:17:13.880929')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '18901a7aaa21c295c0ecaac35964c8c2', '06d451b80bf9fe3ce6849a48c98522d7', 24, 'info:sid/google', '0.0.0.0', '2015-02-26 17:17:13.901335')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 24, '2015-02-26 17:17:13.923435', '2015-02-26 17:17:13.923435')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24
[1m[36mServiceResponse Exists (1.0ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 24 LIMIT 1[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'efff6be0002df547ad886999c84191ac' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:17:13.965078')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 25, '2015-02-26 17:17:13.967170')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 25, '2015-02-26 17:17:13.968934')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 25, '2015-02-26 17:17:13.970665')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 25, '2015-02-26 17:17:13.972530')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 25, '2015-02-26 17:17:13.974204')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 25, '2015-02-26 17:17:13.976012')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'efff6be0002df547ad886999c84191ac', 'd95884a882a64501650fb8f9deae5104', 25, 'info:sid/google', '0.0.0.0', '2015-02-26 17:17:13.996241')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 25, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:17:14.021138')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 25, '2015-02-26 17:17:14.043499', '2015-02-26 17:17:14.043499')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 25[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '103a27845417b93c8b5c2cf457d89dcc' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:14.112269')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 26, '2015-02-26 17:17:14.114426')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 26, '2015-02-26 17:17:14.116313')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 26, '2015-02-26 17:17:14.118155')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '103a27845417b93c8b5c2cf457d89dcc', 'e7e9149c1fdfcd3be6736b651a0064bb', 26, '0.0.0.0', '2015-02-26 17:17:14.137984')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 26, 'test_holding', 'holding', '2015-02-26 17:17:14.159268')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:17:14.186984', '2015-02-26 17:17:14.186984')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '451eca9fb922e35a95fabc2f69cf8cce' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:14.216073')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:17:14.218219')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 27, '2015-02-26 17:17:14.220158')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 27, '2015-02-26 17:17:14.221972')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '451eca9fb922e35a95fabc2f69cf8cce', 'e7e9149c1fdfcd3be6736b651a0064bb', 27, '0.0.0.0', '2015-02-26 17:17:14.242124')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 27, 'test_holding', 'holding', '2015-02-26 17:17:14.263128')
[1m[36m (20.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 27 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 27, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:14.298818')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:17:14.320507', '2015-02-26 17:17:14.320507')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'dce9d680146b88d234060dfa6c4da082' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:14.348724')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:17:14.350675')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 28, '2015-02-26 17:17:14.352482')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 28, '2015-02-26 17:17:14.354258')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'dce9d680146b88d234060dfa6c4da082', 'e7e9149c1fdfcd3be6736b651a0064bb', 28, '0.0.0.0', '2015-02-26 17:17:14.373535')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 28, 'test_holding', 'holding', '2015-02-26 17:17:14.394044')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:14.421703')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 28, '2015-02-26 17:17:14.443306', '2015-02-26 17:17:14.443306')
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35m (3.5ms)[0m BEGIN
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 28
[1m[36mActiveRecord::SchemaMigration Load (2.5ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (98.6ms)[0m [1mDROP DATABASE IF EXISTS `umlaut3_test`[0m
[1m[35m (5.5ms)[0m CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (40.1ms)[0m [1mCREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB[0m
[1m[35m (90.6ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (80.1ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (79.3ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (45.4ms)[0m [1mCREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (87.1ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (42.6ms)[0m [1mCREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB[0m
[1m[35m (75.9ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (35.9ms)[0m [1mCREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (77.7ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (68.8ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (34.1ms)[0m CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB
[1m[36m (79.4ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (77.4ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (89.6ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (78.9ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (72.0ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (93.5ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (39.9ms)[0m [1mCREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB[0m
[1m[35m (81.7ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (96.3ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (96.7ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (34.9ms)[0m [1mCREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB[0m
[1m[35m (75.0ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (72.0ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (35.9ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (77.7ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (82.5ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (34.2ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (79.4ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (35.7ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (105.8ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (1.0ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (23.7ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (1.1ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '65de81b9a6ba6f0a382c2384b48e2ec7' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:54.363641')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:17:54.366273')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 1, '2015-02-26 17:17:54.368213')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '65de81b9a6ba6f0a382c2384b48e2ec7', '1f2487b5ab29a0f58587335258d7f8e0', 1, '0.0.0.0', '2015-02-26 17:17:54.594392')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:54.638714')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:17:54.673710', '2015-02-26 17:17:54.673710')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:54 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'b88f6fa6a06cadc74e60c78a267e017a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:54.788951')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:17:54.790879')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 2, '2015-02-26 17:17:54.792961')[0m
[1m[35m (25.0ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'b88f6fa6a06cadc74e60c78a267e017a', '1f2487b5ab29a0f58587335258d7f8e0', 2, '127.0.0.1', '2015-02-26 17:17:54.824206')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 2, '2015-02-26 17:17:54.855219', '2015-02-26 17:17:54.855219')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (2)[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (2) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (2)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (47.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`id` = 2 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:54.974444')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"JOHNSHOPKINS","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_temporary', `exception_info` = '---\n:class_name: BorrowDirect::HttpTimeoutError\n:message: Timeout after 0.0s connecting to BorrowDirect server at https://bdtest.relais-host.com/\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:105:in\n `rescue in request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:59:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/service_adaptors/service.rb:92:in\n `handle_wrapper\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/models/service_wave.rb:88:in\n `block (2 levels) in handle\'\n', `updated_at` = '2015-02-26 17:17:55.005979' WHERE `dispatched_services`.`id` = 2
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 2 LIMIT 1
[1m[36mDispatchedService Load (5.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.6ms)
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 2 LIMIT 1
[1m[36mReferentValue Load (0.7ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (2)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (5.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (2.1ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (37.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (3.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (8.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (10.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (6.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (98.8ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 2
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (9.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.8ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
Completed 200 OK in 472ms (Views: 147.8ms | ActiveRecord: 77.2ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_link_without_ISBN
------------------------------------------------------------
Started GET "/resolve?genre=book&author=Smith&title=Some+Book" for 127.0.0.1 at 2015-02-26 12:17:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"book", "author"=>"Smith", "title"=>"Some Book"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c56d9a127f4797ecbfc78e262e442373' AND `requests`.`contextobj_fingerprint` = 'a03fb1fb17f24f5ea845bf6c4450490b' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('some book', '2015-02-26 17:17:55.208855')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 3, '2015-02-26 17:17:55.210935')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 3, '2015-02-26 17:17:55.213066')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'Smith', 'smith', 1, 3, '2015-02-26 17:17:55.215019')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Some Book', 'some book', 1, 3, '2015-02-26 17:17:55.216774')[0m
[1m[35m (36.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=book&author=Smith&title=Some+Book\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c56d9a127f4797ecbfc78e262e442373', 'a03fb1fb17f24f5ea845bf6c4450490b', 3, '127.0.0.1', '2015-02-26 17:17:55.259447')
[1m[36m (18.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 3, '2015-02-26 17:17:55.290801', '2015-02-26 17:17:55.290801')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (3)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (3) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (3)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (14.7ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`id` = 3 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 3, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=ti%3D%22some+book%22', '2015-02-26 17:17:55.345159')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:55.367233' WHERE `dispatched_services`.`id` = 3
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 3 LIMIT 1
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 3 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (3)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (40.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (58.1ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 3[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (5.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 254ms (Views: 56.2ms | ActiveRecord: 96.7ms)
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_displays_nothing_for_non-book-like_items
--------------------------------------------------------------------------
Started GET "/resolve?genre=article&title=foo&author=bar" for 127.0.0.1 at 2015-02-26 12:17:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"genre"=>"article", "title"=>"foo", "author"=>"bar"}
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '14a9ce8f8cf6242f681497b0e797da35' AND `requests`.`contextobj_fingerprint` = 'bc13b80c2923ce2cbe0c8347141587a7' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:17:55.470664')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-02-26 17:17:55.472803')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'article', 'article', 1, 4, '2015-02-26 17:17:55.474631')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 4, '2015-02-26 17:17:55.476402')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'bar', 'bar', 1, 4, '2015-02-26 17:17:55.478124')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?genre=article&title=foo&author=bar\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '14a9ce8f8cf6242f681497b0e797da35', 'bc13b80c2923ce2cbe0c8347141587a7', 4, '127.0.0.1', '2015-02-26 17:17:55.498706')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 4, '2015-02-26 17:17:55.526020', '2015-02-26 17:17:55.526020')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (4)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (4) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (4)[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.8ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`id` = 4 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:55.577421' WHERE `dispatched_services`.`id` = 4
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 4 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mReferent Load (1.0ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 4 LIMIT 1[0m
[1m[35mReferentValue Load (0.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (4)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.1ms)
[1m[36mPermalink Load (1.1ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 4[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 159ms (Views: 15.7ms | ActiveRecord: 67.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_message_displayed_for_dispatch_error
----------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd58fd1decf735eff57d4902772925e96' AND `requests`.`contextobj_fingerprint` = '318e542032e1812e600e07efbdb1dfcc' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('foo', '2015-02-26 17:17:55.634027')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 5, '2015-02-26 17:17:55.636070')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 5, '2015-02-26 17:17:55.637861')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'foo', 'foo', 1, 5, '2015-02-26 17:17:55.639692')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd58fd1decf735eff57d4902772925e96', '318e542032e1812e600e07efbdb1dfcc', 5, '0.0.0.0', '2015-02-26 17:17:55.659717')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'failed_fatal', 5, '2015-02-26 17:17:55.681562', '2015-02-26 17:17:55.681562')
[1m[36m (17.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=5" for 127.0.0.1 at 2015-02-26 12:17:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"5"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (1.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 5 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m [["request_id", 5]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 5 LIMIT 1 [["id", 5]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (5)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.6ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (15.9ms)
[1m[35mPermalink Load (1.4ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 5
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 38ms (Views: 16.4ms | ActiveRecord: 13.7ms)
-------------------------------------------------------------
BorrowDirectIntegrationTest: test_error_on_bad_patron_barcode
-------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:55 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bf75246f987c9a10e30ae00f774326ae' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:55.806119')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:17:55.808284')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2015-02-26 17:17:55.810254')[0m
[1m[35m (19.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'bf75246f987c9a10e30ae00f774326ae', '1f2487b5ab29a0f58587335258d7f8e0', 6, '127.0.0.1', '2015-02-26 17:17:55.835436')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 6, '2015-02-26 17:17:55.863629', '2015-02-26 17:17:55.863629')
[1m[36m (19.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (1.3ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (6)[0m
[1m[35mReferentValue Load (1.5ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (6) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (6)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (18.0ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`id` = 6 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:55.926847')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 6, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:55.957353')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:55.982889' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.3ms)
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.8ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1[0m [["id", 6]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (4.3ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (6.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (28.1ms)
[1m[36mPermalink Load (1.4ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 240ms (Views: 24.2ms | ActiveRecord: 79.5ms)
Started GET "/borrow_direct/BorrowDirect/6?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:17:56 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"6"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.5ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:17:56.052118' WHERE `dispatched_services`.`id` = 6
[1m[36m (15.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 6, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:56.072738')[0m
[1m[35m (17.4ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
Redirected to http://www.example.com/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 55ms (ActiveRecord: 42.9ms)
BorrowDirect: Error placing request: BorrowDirect::Error PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower barcode - please refer to the circulation desk.]. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request.rb:93:in `request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.7ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN003: Authentication failed[NCIP_MSG:Unknown User - #Unknown borrower\n barcode - please refer to the circulation desk.]\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:56.147838' WHERE `dispatched_services`.`id` = 6[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 6
[1m[36m (17.8ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=6&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"6", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:56-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m
[1m[35mRequest Load (0.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 6 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6[0m [["request_id", 6]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 6 LIMIT 1 [["id", 6]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (6)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.0ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (3.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (18.3ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 6
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 40ms (Views: 18.4ms | ActiveRecord: 12.2ms)
-----------------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_non-requestable_ISBN_displays_unavailable_message
-----------------------------------------------------------------------------------
Started GET "/resolve?isbn=0109836413" for 127.0.0.1 at 2015-02-26 12:17:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"0109836413"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c752eae8db40c4f4cf5821b0880b0166' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:17:56.249123')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:17:56.251302')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 7, '2015-02-26 17:17:56.253371')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=0109836413\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', 'c752eae8db40c4f4cf5821b0880b0166', '9902a1d22a141a826ae31b1c83cb928c', 7, '127.0.0.1', '2015-02-26 17:17:56.274436')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 7, '2015-02-26 17:17:56.302148', '2015-02-26 17:17:56.302148')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (7)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (7) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (7)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`id` = 7 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:56.356757')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 7, 'BorrowDirect', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:56.383765')[0m
[1m[35m (18.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:56.409923' WHERE `dispatched_services`.`id` = 7[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 7 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (2.0ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 7 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (7)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (22.1ms)
[1m[35mPermalink Load (1.3ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 7
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
Completed 200 OK in 218ms (Views: 19.6ms | ActiveRecord: 69.5ms)
------------------------------------------------------------
BorrowDirectIntegrationTest: test_places_request_succesfully
------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:56 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5aaeab19b9e061ba5c45ccb67e48d252' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:56.514952')[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:17:56.517400')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:17:56.519821')[0m
[1m[35m (15.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '5aaeab19b9e061ba5c45ccb67e48d252', '1f2487b5ab29a0f58587335258d7f8e0', 8, '127.0.0.1', '2015-02-26 17:17:56.542254')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 8, '2015-02-26 17:17:56.570313', '2015-02-26 17:17:56.570313')
[1m[36m (68.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (1.5ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (8)[0m
[1m[35mReferentValue Load (1.4ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (8) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (8)
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (52.9ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`id` = 8 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:56.716795')
[1m[36m (27.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (30.6ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 8, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:56.759904')[0m
[1m[35m (21.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:56.820806' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (33.2ms)[0m COMMIT
[1m[36mRequest Load (1.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.9ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1
[1m[36mReferentValue Load (1.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1[0m [["id", 8]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (6.2ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (7.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (8.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (27.6ms)
[1m[36mPermalink Load (1.0ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
Completed 200 OK in 385ms (Views: 20.5ms | ActiveRecord: 128.5ms)
Started GET "/borrow_direct/BorrowDirect/8?pickup_location=*Milton+S.+Eisenhower+Library" for 127.0.0.1 at 2015-02-26 12:17:56 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"*Milton S. Eisenhower Library", "service_id"=>"BorrowDirect", "request_id"=>"8"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (0.9ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'in_progress', `updated_at` = '2015-02-26 17:17:56.905072' WHERE `dispatched_services`.`id` = 8
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 8, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:56.924251')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mReferent Load (0.9ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.8ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
Redirected to http://www.example.com/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Completed 303 See Other in 49ms (ActiveRecord: 38.1ms)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:56.955704' WHERE `dispatched_services`.`id` = 8[0m
[1m[35m (18.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: successful\n:error_user_message: \'\'\n:request_number: JHU-99000896\n' WHERE `service_responses`.`id` = 11
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
Started GET "/resolve?umlaut.request_id=8&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A56-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:57 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"8", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:56-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1[0m
[1m[35mReferentValue Load (0.9ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 8 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m [["request_id", 8]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 8 LIMIT 1 [["id", 8]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (8)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[35mServiceResponse Load (1.5ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (40.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (41.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (41.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (55.4ms)
[1m[35mPermalink Load (0.7ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 8
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
Completed 200 OK in 78ms (Views: 17.0ms | ActiveRecord: 51.1ms)
----------------------------------------------------------------
BorrowDirectIntegrationTest: test_requestable_ISBN_displays_form
----------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:57 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[36mRequest Load (1.8ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '17a84058fc456cdf5cfc2546aa9c105a' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:57.095652')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:17:57.097990')
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 9, '2015-02-26 17:17:57.100243')[0m
[1m[35m (21.9ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '17a84058fc456cdf5cfc2546aa9c105a', '1f2487b5ab29a0f58587335258d7f8e0', 9, '127.0.0.1', '2015-02-26 17:17:57.128602')
[1m[36m (27.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 9, '2015-02-26 17:17:57.169550', '2015-02-26 17:17:57.169550')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (9)[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (9) ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (9)
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mSQL (15.1ms)[0m UPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`id` = 9 AND `dispatched_services`.`status` = 'queued'
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 9, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:57.226529')
[1m[36m (17.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 9, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:57.258085')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:57.283501' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mRequest Load (0.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1
[1m[36mReferentValue Load (0.8ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (1.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 LIMIT 1[0m [["id", 9]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 9 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.9ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.3ms)
[1m[36mPermalink Load (1.3ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 9[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.2ms)
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
Completed 200 OK in 244ms (Views: 20.8ms | ActiveRecord: 93.1ms)
-----------------------------------------
BorrowDirectIntegrationTest: test_routing
-----------------------------------------
--------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_validation_error_without_pickup_location
--------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:17:57 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (2.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2c2747f3703f6a321b6978b1bdfceaa4' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:57.388741')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:17:57.390870')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 10, '2015-02-26 17:17:57.392669')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '2c2747f3703f6a321b6978b1bdfceaa4', '1f2487b5ab29a0f58587335258d7f8e0', 10, '127.0.0.1', '2015-02-26 17:17:57.412761')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'queued', 10, '2015-02-26 17:17:57.440399', '2015-02-26 17:17:57.440399')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m
[1m[35mReferent Load (1.1ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (10)
[1m[36mReferentValue Load (1.3ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (10) ORDER BY id ASC
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (10)[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (19.1ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`id` = 10 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 10, 'BorrowDirect', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'https://catalyst.library.jhu.edu/borrow_direct?query=', '2015-02-26 17:17:57.498182')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 10, 'BorrowDirect', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:57.527581')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.8ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m UPDATE `dispatched_services` SET `status` = 'successful', `updated_at` = '2015-02-26 17:17:57.553613' WHERE `dispatched_services`.`id` = 10
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mRequest Load (1.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (1.8ms)
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.7ms)
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[35mCACHE (0.0ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1 [["id", 10]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (2.1ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (2.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (23.6ms)
[1m[35mPermalink Load (1.1ms)[0m SELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.4ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
Completed 200 OK in 223ms (Views: 20.1ms | ActiveRecord: 67.8ms)
Started GET "/borrow_direct/BorrowDirect/10" for 127.0.0.1 at 2015-02-26 12:17:57 -0500
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 10, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:57.615465')
[1m[36m (16.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (0.8ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (0.9ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Redirected to http://www.example.com/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 23.7ms)
Started GET "/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A57-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=9789810743734&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=127.0.0.1" for 127.0.0.1 at 2015-02-26 12:17:57 -0500
Processing by ResolveController#index as HTML
Parameters: {"umlaut.request_id"=>"10", "url_ver"=>"Z39.88-2004", "url_ctx_fmt"=>"info:ofi/fmt:kev:mtx:ctx", "ctx_ver"=>"Z39.88-2004", "ctx_tim"=>"2015-02-26T12:17:57-05:00", "ctx_id"=>"", "ctx_enc"=>"info:ofi/enc:UTF-8", "rft.isbn"=>"9789810743734", "rft_val_fmt"=>"info:ofi/fmt:kev:mtx:journal", "req.ip"=>"127.0.0.1"}
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mReferent Load (0.8ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1[0m
[1m[35mReferentValue Load (1.0ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35m (0.9ms)[0m COMMIT
[1m[36mDispatchedService Load (0.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m
[1m[35mRequest Load (0.9ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1
[1m[36mCACHE (0.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10[0m [["request_id", 10]]
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_background_updater.html.erb (0.5ms)
[1m[35mCACHE (0.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1 [["id", 10]]
[1m[36mCACHE (0.0ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_manually_entered_warning.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_citation.html.erb (0.8ms)
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_fulltext.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_holding.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_standard_response_item.html.erb (1.1ms)
[1m[36mCACHE (0.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 LIMIT 1[0m [["id", 10]]
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_request_form.html.erb (1.9ms)
Rendered /Users/jrochkind/code/umlaut_borrow_direct/app/views/borrow_direct/_resolve_section.html.erb (3.7ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (4.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_coins.html.erb (0.3ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.8ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_search_inside.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.5ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_heading.html.erb (0.1ms)
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 10 AND `dispatched_services`.`status` IN ('failed_temporary', 'failed_fatal')
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_service_errors.html.erb (1.6ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_section_display.html.erb (2.0ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/_modal.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/resolve/index.html.erb within layouts/umlaut (19.5ms)
[1m[36mPermalink Load (0.9ms)[0m [1mSELECT `permalinks`.* FROM `permalinks` WHERE `permalinks`.`referent_id` = 10[0m
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_header.html.erb (2.2ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_alerts.html.erb (0.1ms)
Rendered /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/app/views/umlaut/_footer.html.erb (0.3ms)
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
Completed 200 OK in 42ms (Views: 20.2ms | ActiveRecord: 11.4ms)
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0fd69f5626b0b2e614cf8b7b302cf0b3' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:57.736063')
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:17:57.738517')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 11, '2015-02-26 17:17:57.740577')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 11, '2015-02-26 17:17:57.742392')[0m
[1m[35m (25.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0fd69f5626b0b2e614cf8b7b302cf0b3', 'e7e9149c1fdfcd3be6736b651a0064bb', 11, '0.0.0.0', '2015-02-26 17:17:57.773391')
[1m[36m (25.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 11, 'test_holding', 'holding', '2015-02-26 17:17:57.808364')[0m
[1m[35m (36.7ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 11, '2015-02-26 17:17:57.858601', '2015-02-26 17:17:57.858601')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '0ac8ba964226c5c856be0c8394c29f18' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.8ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:57.888060')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:17:57.890741')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 12, '2015-02-26 17:17:57.892591')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 12, '2015-02-26 17:17:57.894448')
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '0ac8ba964226c5c856be0c8394c29f18', 'e7e9149c1fdfcd3be6736b651a0064bb', 12, '0.0.0.0', '2015-02-26 17:17:57.917873')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 12, 'test_holding', 'holding', '2015-02-26 17:17:57.939251')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 12, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:57.968194')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 12, '2015-02-26 17:17:57.990050', '2015-02-26 17:17:57.990050')
[1m[36m (15.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '85d76beed1946580b1713809da9a4cdc' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:58.018965')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:17:58.021009')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 13, '2015-02-26 17:17:58.022812')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 13, '2015-02-26 17:17:58.024552')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '85d76beed1946580b1713809da9a4cdc', 'e7e9149c1fdfcd3be6736b651a0064bb', 13, '0.0.0.0', '2015-02-26 17:17:58.044031')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 13, 'test_holding', 'holding', '2015-02-26 17:17:58.064978')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.7ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 13, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:58.092654')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 13, '2015-02-26 17:17:58.114193', '2015-02-26 17:17:58.114193')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 13
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '04373ff56fc664321125480c81b4709d' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:17:58.143418')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:17:58.145416')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 14, '2015-02-26 17:17:58.147299')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '04373ff56fc664321125480c81b4709d', '9902a1d22a141a826ae31b1c83cb928c', 14, '0.0.0.0', '2015-02-26 17:17:58.166732')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 14, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:58.191016')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 14, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:58.217566')[0m
[1m[35m (17.0ms)[0m COMMIT
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 14, '2015-02-26 17:17:58.241954', '2015-02-26 17:17:58.241954')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14[0m
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '838612a2005406f92a3c601f42a7f8c9' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:17:58.270140')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:17:58.272053')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 15, '2015-02-26 17:17:58.273810')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '838612a2005406f92a3c601f42a7f8c9', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 15, '0.0.0.0', '2015-02-26 17:17:58.293141')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 15, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:58.318403')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 15, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:17:58.386250')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 15, '2015-02-26 17:17:58.408206', '2015-02-26 17:17:58.408206')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 15
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae6c2f5d1dd5994a1c385499c927a764' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:58.436837')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:17:58.438881')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2015-02-26 17:17:58.440906')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ae6c2f5d1dd5994a1c385499c927a764', '1f2487b5ab29a0f58587335258d7f8e0', 16, '0.0.0.0', '2015-02-26 17:17:58.460755')
[1m[36m (16.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 16 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:58.488021')
[1m[36m (18.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 16, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:17:58.519877')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.6ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 16, '2015-02-26 17:17:58.545242', '2015-02-26 17:17:58.545242')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.7ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae89e070fc271b3b3462f07268ef7005' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:17:58.574307')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 17, '2015-02-26 17:17:58.576434')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 17, '2015-02-26 17:17:58.578366')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ae89e070fc271b3b3462f07268ef7005', '1f2487b5ab29a0f58587335258d7f8e0', 17, '0.0.0.0', '2015-02-26 17:17:58.597831')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 17 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 17, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:17:58.623486')[0m
[1m[35m (17.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 17, '2015-02-26 17:17:58.654159', '2015-02-26 17:17:58.654159')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:17:58.679476' WHERE `dispatched_services`.`id` = 17
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 17
[1m[36mRequest Load (1.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '399904f6e44516e42b8aa7ca5445ebb1' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:17:58.738309')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 18, '2015-02-26 17:17:58.740217')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 18, '2015-02-26 17:17:58.742075')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 18, '2015-02-26 17:17:58.743913')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '399904f6e44516e42b8aa7ca5445ebb1', 'e7e9149c1fdfcd3be6736b651a0064bb', 18, '0.0.0.0', '2015-02-26 17:17:58.763259')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`request_id`, `service_data`, `service_id`, `service_type_value_name`, `created_at`) VALUES (18, '--- {}\n', 'test_holding', 'holding', '2015-02-26 17:17:58.784927')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 18, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:17:58.805711')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 18, '2015-02-26 17:17:58.826848', '2015-02-26 17:17:58.826848')[0m
[1m[35m (14.4ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 18[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 18 ORDER BY id ASC
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1[0m
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 3ms (Views: 0.2ms | ActiveRecord: 1.4ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ed345beb5d08732b660b64580e4b1c36' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:58.916826')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 19, '2015-02-26 17:17:58.918973')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 19, '2015-02-26 17:17:58.920867')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.5ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ed345beb5d08732b660b64580e4b1c36', 'e4f2e6742054acb1be6068a6078c6b4d', 19, '0.0.0.0', '2015-02-26 17:17:58.940544')[0m
[1m[35m (14.4ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"19"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 19 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 19 ORDER BY id ASC
BorrowDirectController: No existing bd_request_prompt response found for request 19
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 19\n', 19, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:58.967895')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 19 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (19)[0m
Redirected to http://test.host/resolve?umlaut.request_id=19&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A58-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 21.9ms)
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '417c034b5adc7c9f5081737af4f6c29f' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:58.997697')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 20, '2015-02-26 17:17:58.999705')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 20, '2015-02-26 17:17:59.001720')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '417c034b5adc7c9f5081737af4f6c29f', 'e4f2e6742054acb1be6068a6078c6b4d', 20, '0.0.0.0', '2015-02-26 17:17:59.021496')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 20, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.043010')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"20"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 20 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 20 ORDER BY id ASC[0m
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 32
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 32\n', 20, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.068894')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.4ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 20 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (20)
Redirected to http://test.host/resolve?umlaut.request_id=20&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 30ms (ActiveRecord: 21.7ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '6a2f3bbefd9093b68bf47d409ff6c128' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.099268')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 21, '2015-02-26 17:17:59.101336')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 21, '2015-02-26 17:17:59.103285')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '6a2f3bbefd9093b68bf47d409ff6c128', 'e4f2e6742054acb1be6068a6078c6b4d', 21, '0.0.0.0', '2015-02-26 17:17:59.122468')
[1m[36m (13.9ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 21, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.143426')[0m
[1m[35m (14.1ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"21"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 21 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC
[1m[36mDispatchedService Load (1.5ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 21, '2015-02-26 17:17:59.170726', '2015-02-26 17:17:59.170726')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 21, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.192014')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 21 LIMIT 1
[1m[36mReferentValue Load (1.2ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (21)[0m
Redirected to http://test.host/resolve?umlaut.request_id=21&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Completed 303 See Other in 55ms (ActiveRecord: 40.5ms)
[1m[35mDispatchedService Load (4.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 21 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (6.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 21 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:59.233680' WHERE `dispatched_services`.`id` = 19
[1m[36m (15.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 35[0m
[1m[35m (13.9ms)[0m COMMIT
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f7c480d747da00ae1a158dc3c815a516' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.280560')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 22, '2015-02-26 17:17:59.282691')
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 22, '2015-02-26 17:17:59.284479')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f7c480d747da00ae1a158dc3c815a516', 'e4f2e6742054acb1be6068a6078c6b4d', 22, '0.0.0.0', '2015-02-26 17:17:59.304839')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 22, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.326199')[0m
[1m[35m (18.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"22"}
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 22 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 22 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 22 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 22, '2015-02-26 17:17:59.357301', '2015-02-26 17:17:59.357301')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 22, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.378611')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.3ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 22 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (22)[0m
Redirected to http://example.org
Completed 302 Found in 56ms (ActiveRecord: 41.5ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'a62654192994d3367a90c3c1f9fe07d4' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.413461')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 23, '2015-02-26 17:17:59.415374')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 23, '2015-02-26 17:17:59.417126')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'a62654192994d3367a90c3c1f9fe07d4', 'e4f2e6742054acb1be6068a6078c6b4d', 23, '0.0.0.0', '2015-02-26 17:17:59.436783')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 23, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.458288')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"23"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 23 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 23 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 23, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.529341')[0m
[1m[35m (18.8ms)[0m COMMIT
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 78ms (ActiveRecord: 23.8ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[36mRequest Load (2.0ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5b72fac57685e9353851ce5eb9062166' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.565094')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 24, '2015-02-26 17:17:59.567069')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 24, '2015-02-26 17:17:59.568986')[0m
[1m[35m (14.8ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5b72fac57685e9353851ce5eb9062166', 'e4f2e6742054acb1be6068a6078c6b4d', 24, '0.0.0.0', '2015-02-26 17:17:59.588924')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 24, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:17:59.610162')[0m
[1m[35m (14.5ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"24"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 24 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 24 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 24, '2015-02-26 17:17:59.637170', '2015-02-26 17:17:59.637170')[0m
[1m[35m (18.4ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.8ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 24, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.662469')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.4ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 24 LIMIT 1
[1m[36mReferentValue Load (1.5ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (24)[0m
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 56ms (Views: 0.4ms | ActiveRecord: 45.0ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/portal-service/user/authentication/patron
Body: {"AuthenticationInformation":{"LibrarySymbol":"JOHNSHOPKINS","PatronId":"21151006865006"}}
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* If you want VCR to record this request and play it back during future test
runs, you should wrap your test (or this portion of your test) in a
`VCR.use_cassette` block [2].
* If you only want VCR to handle requests made while a cassette is in use,
configure `allow_http_connections_when_no_cassette = true`. VCR will
ignore this request since it is made when there is no cassette [3].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:27:in `authentication_request'
borrow_direct (0.11.0) lib/borrow_direct/authentication.rb:35:in `get_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:137:in `fetch_auth_id!'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:143:in `need_auth_id'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:100:in `exact_search_request_hash'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 24 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mRequest Load (6.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '494ad141edc49d175a51512ffc50c821' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (10.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.7ms)[0m UPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/portal-service/user/authentication/patron\\n\n \\ Body: {\\\"AuthenticationInformation\\\":{\\\"LibrarySymbol\\\":\\\"JOHNSHOPKINS\\\",\\\"PatronId\\\":\\\"21151006865006\\\"}}\\n\\nThere\n is currently no cassette in use. There are a few ways\\nyou can configure VCR to\n handle this request:\\n\\n * If you\'re surprised VCR is raising this error\\n and\n want insight about how VCR attempted to handle the request,\\n you can use the\n debug_logger configuration option to log more details [1].\\n * If you want VCR\n to record this request and play it back during future test\\n runs, you should\n wrap your test (or this portion of your test) in a\\n `VCR.use_cassette` block\n [2].\\n * If you only want VCR to handle requests made while a cassette is in use,\\n\n \\ configure `allow_http_connections_when_no_cassette = true`. VCR will\\n ignore\n this request since it is made when there is no cassette [3].\\n * If you want VCR\n to ignore this request (and others like it), you can\\n set an `ignore_request`\n callback [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/getting-started\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/allow-http-connections-when-no-cassette\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:27:in\n `authentication_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/authentication.rb:35:in\n `get_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:137:in\n `fetch_auth_id!\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:143:in\n `need_auth_id\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:100:in\n `exact_search_request_hash\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:17:59.701801' WHERE `dispatched_services`.`id` = 21
[1m[36mSQL (3.5ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:17:59.713477')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 25, '2015-02-26 17:17:59.717845')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 25, '2015-02-26 17:17:59.719883')[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (16.9ms)[0m COMMIT
[1m[36mSQL (2.3ms)[0m [1mUPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 41[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '494ad141edc49d175a51512ffc50c821', 'e4f2e6742054acb1be6068a6078c6b4d', 25, '0.0.0.0', '2015-02-26 17:17:59.741796')[0m
[1m[35m (15.0ms)[0m COMMIT
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"25"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 25 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 25 ORDER BY id ASC[0m
[1m[35m (1.0ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 25, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:17:59.768700')[0m
[1m[35m (16.0ms)[0m COMMIT
[1m[36mReferent Load (1.2ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 25 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (25)
Redirected to http://test.host/resolve?umlaut.request_id=25&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A17%3A59-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 32ms (ActiveRecord: 23.3ms)
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7b409873d13c60e0cba46ef6c01dba58' AND `requests`.`contextobj_fingerprint` = 'd95884a882a64501650fb8f9deae5104' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `referents` (`title`, `year`, `created_at`) VALUES ('biological foundations of language', '1967', '2015-02-26 17:17:59.804785')[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'book', 'book', 26, '2015-02-26 17:17:59.806947')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'EH', 'eh', 1, 26, '2015-02-26 17:17:59.809156')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Lenneberg', 'lenneberg', 1, 26, '2015-02-26 17:17:59.810988')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Biological foundations of language', 'biological foundations of language', 1, 26, '2015-02-26 17:17:59.812936')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('genre', 'book', 'book', 1, 26, '2015-02-26 17:17:59.814571')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1967', '1967', 1, 26, '2015-02-26 17:17:59.816328')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7b409873d13c60e0cba46ef6c01dba58', 'd95884a882a64501650fb8f9deae5104', 26, 'info:sid/google', '0.0.0.0', '2015-02-26 17:17:59.836213')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 26 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 26, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22biological+foundations+of+language%22+and+au%3D%22lenneberg%22', '2015-02-26 17:17:59.860623')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.3ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 26, '2015-02-26 17:17:59.881884', '2015-02-26 17:17:59.881884')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 26
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e2f5cb7530d0519bf15b2232cf11b57f' AND `requests`.`contextobj_fingerprint` = '06d451b80bf9fe3ce6849a48c98522d7' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`atitle`, `title`, `volume`, `year`, `issn`, `created_at`) VALUES ('the coming anarchy', 'the atlantic monthly', '273', '1994', '1072-7825', '2015-02-26 17:17:59.916052')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 27, '2015-02-26 17:17:59.918051')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('auinit', 'RD', 'rd', 1, 27, '2015-02-26 17:17:59.919685')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Kaplan', 'kaplan', 1, 27, '2015-02-26 17:17:59.921432')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('atitle', 'The coming anarchy', 'the coming anarchy', 1, 27, '2015-02-26 17:17:59.923119')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'The Atlantic monthly', 'the atlantic monthly', 1, 27, '2015-02-26 17:17:59.924825')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('volume', '273', '273', 1, 27, '2015-02-26 17:17:59.926599')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issue', '2', '2', 1, 27, '2015-02-26 17:17:59.928344')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('date', '1994', '1994', 1, 27, '2015-02-26 17:17:59.930138')[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('spage', '44', '44', 1, 27, '2015-02-26 17:17:59.931882')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('issn', '1072-7825', '1072-7825', 1, 27, '2015-02-26 17:17:59.933860')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `referrer_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e2f5cb7530d0519bf15b2232cf11b57f', '06d451b80bf9fe3ce6849a48c98522d7', 27, 'info:sid/google', '0.0.0.0', '2015-02-26 17:17:59.954354')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 27, '2015-02-26 17:17:59.977073', '2015-02-26 17:17:59.977073')
[1m[36m (25.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 27
[1m[36mServiceResponse Exists (1.7ms)[0m [1mSELECT 1 AS one FROM `service_responses` WHERE `service_responses`.`request_id` = 27 LIMIT 1[0m
[1m[35mRequest Load (1.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'e77015e726f4f6a11c50fcffe95affa6' AND `requests`.`contextobj_fingerprint` = '62590701c6f35b45309577ef8c8c22b4' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `referents` (`title`, `created_at`) VALUES ('modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', '2015-02-26 17:18:00.067576')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 28, '2015-02-26 17:18:00.069941')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'Modern agriculture, based on \"Essentials of the new agriculture\" by Henry Jackson Waters,', 'modern agriculture, based on \"essentials of the new agriculture\" by henry jackson waters,', 1, 28, '2015-02-26 17:18:00.071980')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('aulast', 'Grimes', 'grimes', 1, 28, '2015-02-26 17:18:00.073800')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'e77015e726f4f6a11c50fcffe95affa6', '62590701c6f35b45309577ef8c8c22b4', 28, '0.0.0.0', '2015-02-26 17:18:00.093705')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 28, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22modern+agriculture+based+on+essentials%22+and+au%3D%22grimes%22', '2015-02-26 17:18:00.116882')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mServiceResponse Load (1.6ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 28 ORDER BY id ASC[0m
[1m[35m (0.8ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[36mActiveRecord::SchemaMigration Load (2.4ms)[0m [1mSELECT `schema_migrations`.* FROM `schema_migrations`[0m
[1m[36m (89.5ms)[0m [1mDROP DATABASE IF EXISTS `umlaut3_test`[0m
[1m[35m (5.7ms)[0m CREATE DATABASE `umlaut3_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
[1m[36m (40.0ms)[0m [1mCREATE TABLE `clickthroughs` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_response_id` int(11) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL) ENGINE=InnoDB[0m
[1m[35m (88.9ms)[0m CREATE INDEX `click_created_idx` USING btree ON `clickthroughs` (`created_at`)
[1m[36m (87.1ms)[0m [1mCREATE INDEX `click_req_id` USING btree ON `clickthroughs` (`request_id`) [0m
[1m[35m (84.4ms)[0m CREATE INDEX `click_serv_resp_idx` USING btree ON `clickthroughs` (`service_response_id`)
[1m[36m (34.0ms)[0m [1mCREATE TABLE `dispatched_services` (`id` int(11) auto_increment PRIMARY KEY, `request_id` int(11) DEFAULT 0 NOT NULL, `service_id` varchar(255) DEFAULT '0' NOT NULL, `updated_at` datetime NOT NULL, `exception_info` text, `status` varchar(255) NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (78.0ms)[0m CREATE INDEX `dptch_request_id` USING btree ON `dispatched_services` (`request_id`, `service_id`)
[1m[36m (37.4ms)[0m [1mCREATE TABLE `permalinks` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0, `created_on` date NOT NULL, `context_obj_serialized` text, `orig_rfr_id` varchar(256), `last_access` date) ENGINE=InnoDB[0m
[1m[35m (86.8ms)[0m CREATE INDEX `plink_referent_idx` USING btree ON `permalinks` (`referent_id`)
[1m[36m (34.1ms)[0m [1mCREATE TABLE `referent_values` (`id` int(11) auto_increment PRIMARY KEY, `referent_id` int(11) DEFAULT 0 NOT NULL, `key_name` varchar(50) DEFAULT '' NOT NULL, `value` text, `normalized_value` varchar(255), `metadata` tinyint(1) DEFAULT 0 NOT NULL, `private_data` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime) ENGINE=InnoDB[0m
[1m[35m (90.9ms)[0m CREATE INDEX `by_name_and_normal_val` USING btree ON `referent_values` (`key_name`, `normalized_value`)
[1m[36m (67.9ms)[0m [1mCREATE INDEX `rft_val_referent_idx` USING btree ON `referent_values` (`referent_id`, `key_name`, `normalized_value`) [0m
[1m[35m (36.5ms)[0m CREATE TABLE `referents` (`id` int(11) auto_increment PRIMARY KEY, `atitle` varchar(255), `title` varchar(255), `issn` varchar(10), `isbn` varchar(13), `year` varchar(4), `volume` varchar(10), `created_at` datetime) ENGINE=InnoDB
[1m[36m (80.4ms)[0m [1mCREATE INDEX `rft_shortcut_idx` USING btree ON `referents` (`atitle`, `title`, `issn`, `isbn`, `year`, `volume`) [0m
[1m[35m (77.6ms)[0m CREATE INDEX `index_referents_on_isbn` USING btree ON `referents` (`isbn`)
[1m[36m (99.8ms)[0m [1mCREATE INDEX `by_issn` USING btree ON `referents` (`issn`, `year`, `volume`) [0m
[1m[35m (76.7ms)[0m CREATE INDEX `index_referents_on_title` USING btree ON `referents` (`title`)
[1m[36m (71.5ms)[0m [1mCREATE INDEX `index_referents_on_volume` USING btree ON `referents` (`volume`) [0m
[1m[35m (77.7ms)[0m CREATE INDEX `by_year` USING btree ON `referents` (`year`, `volume`)
[1m[36m (34.2ms)[0m [1mCREATE TABLE `requests` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(100) DEFAULT '' NOT NULL, `referent_id` int(11) DEFAULT 0 NOT NULL, `referrer_id` varchar(255), `created_at` datetime NOT NULL, `client_ip_addr` varchar(255), `client_ip_is_simulated` tinyint(1), `contextobj_fingerprint` varchar(32), `http_env` varchar(2048)) ENGINE=InnoDB[0m
[1m[35m (76.3ms)[0m CREATE INDEX `index_requests_on_client_ip_addr` USING btree ON `requests` (`client_ip_addr`)
[1m[36m (71.7ms)[0m [1mCREATE INDEX `index_requests_on_contextobj_fingerprint` USING btree ON `requests` (`contextobj_fingerprint`) [0m
[1m[35m (73.9ms)[0m CREATE INDEX `req_created_at` USING btree ON `requests` (`created_at`)
[1m[36m (46.3ms)[0m [1mCREATE TABLE `service_responses` (`id` int(11) auto_increment PRIMARY KEY, `service_id` varchar(25) NOT NULL, `response_key` varchar(255) DEFAULT '', `value_string` varchar(255), `value_alt_string` varchar(255), `value_text` text, `display_text` varchar(255), `url` varchar(1024), `notes` text, `service_data` text, `created_at` datetime, `service_type_value_name` varchar(255), `request_id` int(11)) ENGINE=InnoDB[0m
[1m[35m (92.5ms)[0m CREATE INDEX `index_service_responses_on_request_id` USING btree ON `service_responses` (`request_id`)
[1m[36m (84.5ms)[0m [1mCREATE INDEX `svc_resp_service_id` USING btree ON `service_responses` (`service_id`, `response_key`, `value_string`, `value_alt_string`) [0m
[1m[35m (47.5ms)[0m CREATE TABLE `sessions` (`id` int(11) auto_increment PRIMARY KEY, `session_id` varchar(255), `data` text, `updated_at` datetime) ENGINE=InnoDB
[1m[36m (77.3ms)[0m [1mCREATE INDEX `index_sessions_on_session_id` USING btree ON `sessions` (`session_id`) [0m
[1m[35m (67.8ms)[0m CREATE INDEX `index_sessions_on_updated_at` USING btree ON `sessions` (`updated_at`)
[1m[36m (50.3ms)[0m [1mCREATE TABLE `sfx_urls` (`id` int(11) auto_increment PRIMARY KEY, `url` varchar(255)) ENGINE=InnoDB[0m
[1m[35m (96.4ms)[0m CREATE INDEX `index_sfx_urls_on_url` USING btree ON `sfx_urls` (`url`)
[1m[36m (45.9ms)[0m [1mCREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB[0m
[1m[35m (98.2ms)[0m CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
[1m[36m (1.0ms)[0m [1mSELECT version FROM `schema_migrations`[0m
[1m[35m (14.5ms)[0m INSERT INTO `schema_migrations` (version) VALUES ('20120530191137')
[1m[35mActiveRecord::SchemaMigration Load (1.1ms)[0m SELECT `schema_migrations`.* FROM `schema_migrations`
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2a5b71e3d4bce09165c2a3670ed513c6' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:19:14.135485')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 1, '2015-02-26 17:19:14.138047')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 1, '2015-02-26 17:19:14.140041')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 1, '2015-02-26 17:19:14.141898')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2a5b71e3d4bce09165c2a3670ed513c6', 'e7e9149c1fdfcd3be6736b651a0064bb', 1, '0.0.0.0', '2015-02-26 17:19:14.174914')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:match_reliability: unsure\n:status: Not Charged\n', 1, 'test_holding', 'holding', '2015-02-26 17:19:14.214994')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 1 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 1, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:19:14.244449')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 1, '2015-02-26 17:19:14.280240', '2015-02-26 17:19:14.280240')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 1
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '228a3d1b389792aad88a5c9f6a9b05b9' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:19:14.313013')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 2, '2015-02-26 17:19:14.315072')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 2, '2015-02-26 17:19:14.316998')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 2, '2015-02-26 17:19:14.318957')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (1.1ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '228a3d1b389792aad88a5c9f6a9b05b9', 'e7e9149c1fdfcd3be6736b651a0064bb', 2, '0.0.0.0', '2015-02-26 17:19:14.338960')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Checked out really not available can\'t get it\n', 2, 'test_holding', 'holding', '2015-02-26 17:19:14.361286')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.4ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 2 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 2, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=ti%3D%22title%22', '2015-02-26 17:19:14.390297')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 2, '2015-02-26 17:19:14.412481', '2015-02-26 17:19:14.412481')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 2
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'f68ef766f89bcbbbee35b0dd038c71b5' AND `requests`.`contextobj_fingerprint` = 'e7e9149c1fdfcd3be6736b651a0064bb' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referents` (`title`, `created_at`) VALUES ('title', '2015-02-26 17:19:14.442336')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 3, '2015-02-26 17:19:14.444509')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('title', 'title', 'title', 1, 3, '2015-02-26 17:19:14.446754')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('author', 'au', 'au', 1, 3, '2015-02-26 17:19:14.448671')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'f68ef766f89bcbbbee35b0dd038c71b5', 'e7e9149c1fdfcd3be6736b651a0064bb', 3, '0.0.0.0', '2015-02-26 17:19:14.509403')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (1.1ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: Not Charged\n', 3, 'test_holding', 'holding', '2015-02-26 17:19:14.531719')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.6ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 3 ORDER BY id ASC
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 3, '2015-02-26 17:19:14.559631', '2015-02-26 17:19:14.559631')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 3[0m
[1m[35m (1.0ms)[0m BEGIN
-------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_added
-------------------------------------------------------
[1m[36m (0.8ms)[0m [1mROLLBACK[0m
[1m[35m (0.7ms)[0m BEGIN
----------------------------------------------------------
UmlautBorrowDirectTest: test_custom_service_types_labelled
----------------------------------------------------------
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'bec88f28342360915c9c70472d70e5c7' AND `requests`.`contextobj_fingerprint` = '2b10ccb0ef85bb4e7e43089a2b5eaa14' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('000000000', '2015-02-26 17:19:14.604209')
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 4, '2015-02-26 17:19:14.606586')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '000000000', '000000000', 1, 4, '2015-02-26 17:19:14.608685')
[1m[36m (14.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'bec88f28342360915c9c70472d70e5c7', '2b10ccb0ef85bb4e7e43089a2b5eaa14', 4, '0.0.0.0', '2015-02-26 17:19:14.628630')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36mServiceResponse Load (1.5ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 4 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 4, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:14.653569')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 4, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:19:14.682756')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 4, '2015-02-26 17:19:14.704062', '2015-02-26 17:19:14.704062')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 4
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '8f609501e59556be8ffb6105cc5d8a23' AND `requests`.`contextobj_fingerprint` = '9902a1d22a141a826ae31b1c83cb928c' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('0109836413', '2015-02-26 17:19:14.733005')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 5, '2015-02-26 17:19:14.735077')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '0109836413', '0109836413', 1, 5, '2015-02-26 17:19:14.737034')[0m
[1m[35m (15.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.7ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '8f609501e59556be8ffb6105cc5d8a23', '9902a1d22a141a826ae31b1c83cb928c', 5, '0.0.0.0', '2015-02-26 17:19:14.757732')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 5 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.2ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 5, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:14.784214')
[1m[36m (14.4ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_not_available.display_text\n', 5, 'test_bd', 'bd_not_available', 'This item is not currently available from BorrowDirect', '2015-02-26 17:19:14.812772')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 5, '2015-02-26 17:19:14.835065', '2015-02-26 17:19:14.835065')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 5[0m
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '43282a38fe7223f113051b7d111b9a0e' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:14.862704')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 6, '2015-02-26 17:19:14.864726')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 6, '2015-02-26 17:19:14.866517')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '43282a38fe7223f113051b7d111b9a0e', '1f2487b5ab29a0f58587335258d7f8e0', 6, '0.0.0.0', '2015-02-26 17:19:14.886314')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36mServiceResponse Load (1.3ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 6 ORDER BY id ASC[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 6, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:14.911435')[0m
[1m[35m (14.1ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #
* BD url: https://bdtest.relais-host.com/dws/item/available
* Posted with json payload: {"PartnershipId":"BD","Credentials":{"LibrarySymbol":"BAD_SYMBOL","Barcode":"21151006865006"},"ExactSearch":[{"Type":"ISBN","Value":"9789810743734"}]}
[1m[36mDispatchedService Load (1.3ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'failed_temporary', 6, '2015-02-26 17:19:14.939313', '2015-02-26 17:19:14.939313')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.6ms)[0m UPDATE `dispatched_services` SET `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'PUBAN005: Invalid library symbol\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:93:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:59:in\n `find_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/find_item.rb:68:in\n `find\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/service_adaptors/borrow_direct_adaptor.rb:73:in\n `handle\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:227:in\n `block (4 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/umlaut-4.1.0.pre.alpha.1/lib/umlaut/test_help.rb:33:in\n `with_service_config\'\n- /Users/jrochkind/code/umlaut_borrow_direct/test/borrow_direct_adaptor_test.rb:224:in\n `block (3 levels) in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:108:in\n `block (3 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:206:in\n `capture_exceptions\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:105:in\n `block (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:258:in\n `time_it\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:104:in\n `block in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:278:in\n `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest/test.rb:103:in\n `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:289:in `block\n (2 levels) in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:288:in `block\n in run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:287:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `block\n in __run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `map\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:127:in `run\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/minitest-5.5.1/lib/minitest.rb:56:in `block\n in autorun\'\n', `updated_at` = '2015-02-26 17:19:14.965555' WHERE `dispatched_services`.`id` = 6
[1m[36m (15.1ms)[0m [1mCOMMIT[0m
[1m[35mDispatchedService Load (1.4ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 6
[1m[36mRequest Load (1.5ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '1a74e8745e0cd765dcae8b44f8d9f293' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:15.068161')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 7, '2015-02-26 17:19:15.070218')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 7, '2015-02-26 17:19:15.072281')[0m
[1m[35m (15.6ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '1a74e8745e0cd765dcae8b44f8d9f293', '1f2487b5ab29a0f58587335258d7f8e0', 7, '0.0.0.0', '2015-02-26 17:19:15.093339')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35mServiceResponse Load (1.3ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 7 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 7, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:15.117981')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `created_at`) VALUES ('---\n:display_text_i18n: bd_request_prompt.display_text\n:pickup_locations:\n- ! \'*Milton S. Eisenhower Library\'\n- APL - EP STUDENTS - Ed Center\n- APL STAFF - Room 5-17\n- Arthur Friedheim Library\n- Columbia Center\n- Harbor East\n- Harrison Medical Library-Bayview\n- Institute of the History of Medicine\n- JH Medical Campus Office (faculty and staff)\n- JHMI Pickup - Armstrong 306\n- JHMI Pickup - BSPH E4643\n- JHMI Pickup - Hampton House 9th floor\n- JHMI Pickup - PCTB 115-116\n- JHMI Pickup - School of Nursing 313\n- JHU Homewood Office (faculty and grad students)\n- Montgomery Library Resource Center\n- SAIS Library\n- Washington Library Resource Center\n- Welch Medical Library\n- Wilmer Friedenwald Library\n', 7, 'test_bd', 'bd_request_prompt', 'Choose your delivery location', '2015-02-26 17:19:15.145757')[0m
[1m[35m (14.9ms)[0m COMMIT
[1m[36mDispatchedService Load (1.4ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 7, '2015-02-26 17:19:15.171429', '2015-02-26 17:19:15.171429')[0m
[1m[35m (14.3ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 7[0m
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '48dc46b6fedc11ea9edef4e3a4dcfc7c' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:15.200084')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 8, '2015-02-26 17:19:15.202187')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 8, '2015-02-26 17:19:15.204048')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (1.9ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '48dc46b6fedc11ea9edef4e3a4dcfc7c', '1f2487b5ab29a0f58587335258d7f8e0', 8, '0.0.0.0', '2015-02-26 17:19:15.224084')[0m
[1m[35m (13.9ms)[0m COMMIT
[1m[36mServiceResponse Load (1.2ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 8 ORDER BY id ASC[0m
[1m[35m (1.3ms)[0m BEGIN
[1m[36mSQL (4.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 8, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:15.251258')[0m
[1m[35m (17.8ms)[0m COMMIT
[1m[36mDispatchedService Load (1.9ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35m (7.7ms)[0m BEGIN
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'successful', 8, '2015-02-26 17:19:15.288309', '2015-02-26 17:19:15.288309')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.7ms)[0m COMMIT
[1m[36mDispatchedService Load (1.2ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 8[0m
-----------------------------------------------------------------
BorrowDirectControllerTest: test_400_on_missing_or_bad_parameters
-----------------------------------------------------------------
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"no_such_service", "request_id"=>"1212"}
BorrowDirectController: No such service for id `no_such_service`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 57ms (Views: 56.6ms | ActiveRecord: 0.0ms)
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"bad_id"}
[1m[35mRequest Load (4.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 0 ORDER BY `requests`.`id` ASC LIMIT 1
BorrowDirectController: No Request with id `bad_id`
Rendered text template (0.0ms)
Filter chain halted as :load_service_and_response rendered or redirected
Completed 400 Bad Request in 6ms (Views: 0.4ms | ActiveRecord: 4.6ms)
-------------------------------------------------------------
BorrowDirectControllerTest: test_error_on_bad_pickup_location
-------------------------------------------------------------
[1m[36mRequest Load (2.7ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '5ab8b3bd8173a708b9be120e82ea7619' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (4.4ms)[0m BEGIN
[1m[36mSQL (1.6ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:15.409498')[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 9, '2015-02-26 17:19:15.412274')
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 9, '2015-02-26 17:19:15.414537')[0m
[1m[35m (21.0ms)[0m COMMIT
[1m[36m (2.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (6.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '5ab8b3bd8173a708b9be120e82ea7619', 'e4f2e6742054acb1be6068a6078c6b4d', 9, '0.0.0.0', '2015-02-26 17:19:15.444799')
[1m[36m (14.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"9"}
[1m[35mRequest Load (1.2ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 9 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 9 ORDER BY id ASC[0m
BorrowDirectController: No existing bd_request_prompt response found for request 9
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: No existing bd_request_prompt response found for request 9\n', 9, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:15.477675')[0m
[1m[35m (14.1ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 9 LIMIT 1[0m
[1m[35mReferentValue Load (1.2ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (9)
Redirected to http://test.host/resolve?umlaut.request_id=9&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A15-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 40ms (ActiveRecord: 20.4ms)
[1m[36mRequest Load (1.4ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'ae4d1fc0bae10867bb66f71b4444e509' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:15.517194')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 10, '2015-02-26 17:19:15.519361')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 10, '2015-02-26 17:19:15.521339')[0m
[1m[35m (18.1ms)[0m COMMIT
[1m[36m (5.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'ae4d1fc0bae10867bb66f71b4444e509', 'e4f2e6742054acb1be6068a6078c6b4d', 10, '0.0.0.0', '2015-02-26 17:19:15.550209')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35m (0.9ms)[0m BEGIN
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 10, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:15.572173')[0m
[1m[35m (17.2ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"foo", "service_id"=>"BorrowDirect", "request_id"=>"10"}
[1m[36mRequest Load (2.9ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 10 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 10 ORDER BY id ASC
BorrowDirectController: Pickup location `foo` not listed as acceptable in bd_request_prompt ServiceResponse 15
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: error\n:error_user_message: Pickup location `foo` not listed as acceptable in bd_request_prompt\n ServiceResponse 15\n', 10, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:15.605515')
[1m[36m (17.3ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (3.6ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 10 LIMIT 1
[1m[36mReferentValue Load (1.4ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (10)[0m
Redirected to http://test.host/resolve?umlaut.request_id=10&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A15-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 45ms (ActiveRecord: 29.3ms)
---------------------------------------------
BorrowDirectControllerTest: test_good_request
---------------------------------------------
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'c6a1a2cdc14dc9e96da9ce349bfa1a6e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (3.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (5.4ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:15.653845')
[1m[36mSQL (10.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 11, '2015-02-26 17:19:15.660551')[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 11, '2015-02-26 17:19:15.671910')
[1m[36m (17.7ms)[0m [1mCOMMIT[0m
[1m[35m (3.9ms)[0m BEGIN
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'c6a1a2cdc14dc9e96da9ce349bfa1a6e', 'e4f2e6742054acb1be6068a6078c6b4d', 11, '0.0.0.0', '2015-02-26 17:19:15.700106')[0m
[1m[35m (15.1ms)[0m COMMIT
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 11, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:15.726330')
[1m[36m (15.0ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"11"}
[1m[35mRequest Load (1.3ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 11 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (5.0ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.2ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.1ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 11, '2015-02-26 17:19:15.765196', '2015-02-26 17:19:15.765196')
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.6ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.2ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 11, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:15.789616')[0m
[1m[35m (14.0ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 11 LIMIT 1[0m
[1m[35mReferentValue Load (2.7ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (11)
Redirected to http://test.host/resolve?umlaut.request_id=11&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A15-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
BorrowDirect: Error placing request: BorrowDirect::Error Can not request for: {:isbn=>"121212"}: {"Request"=>{"RequestLink"=>{"ButtonLabel"=>"Request", "ButtonLink"=>"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D", "RequestMessage"=>"Borrow Direct cannot fill this request at this time. Please request through Interlibrary Loan."}}}. Backtrace:
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:85:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
Completed 303 See Other in 83ms (ActiveRecord: 47.2ms)
[1m[36mDispatchedService Load (2.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mDispatchedService Load (2.6ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 11
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mServiceResponse Load (44.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 11 ORDER BY id ASC
[1m[36mSQL (7.0ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: BorrowDirect::Error\n:message: ! \'Can not request for: {:isbn=>\"121212\"}: {\"Request\"=>{\"RequestLink\"=>{\"ButtonLabel\"=>\"Request\",\n \"ButtonLink\"=>\"http://findit.library.jhu.edu/resolve?genre=book&sid=Relais&title=In%20memoriam%20Luigi%20Nono&aufirst=Hans&aulast=Abrahamsen&isbn=9788759826126%20(sewn)&isbn=8759826126%20(sewn)&date=%5B2012%5D&pub=Edition%20Wilhelm%20Hansen&place=%5BCopenhagen%5D\",\n \"RequestMessage\"=>\"Borrow Direct cannot fill this request at this time. Please\n request through Interlibrary Loan.\"}}}\'\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:85:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:19:15.836221' WHERE `dispatched_services`.`id` = 9[0m
[1m[35m (22.1ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.6ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 18
[1m[36m (22.8ms)[0m [1mCOMMIT[0m
-------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url
-------------------------------------------------------------
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = 'd459458d2712342d39715e71e7e68a17' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:15.964092')
[1m[36mSQL (2.7ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 12, '2015-02-26 17:19:15.969570')[0m
[1m[35mSQL (3.4ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 12, '2015-02-26 17:19:15.973660')
[1m[36m (14.9ms)[0m [1mCOMMIT[0m
[1m[35m (4.4ms)[0m BEGIN
[1m[36mSQL (5.6ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', 'd459458d2712342d39715e71e7e68a17', 'e4f2e6742054acb1be6068a6078c6b4d', 12, '0.0.0.0', '2015-02-26 17:19:16.000876')[0m
[1m[35m (16.4ms)[0m COMMIT
[1m[36m (1.4ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.6ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 12, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:16.036142')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"12"}
[1m[35mRequest Load (2.7ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 12 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (6.1ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 12 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.7ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 12 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (1.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.9ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 12, '2015-02-26 17:19:16.079089', '2015-02-26 17:19:16.079089')
[1m[36m (14.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 12, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:16.101771')[0m
[1m[35m (14.7ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 12 LIMIT 1[0m
[1m[35mReferentValue Load (1.3ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (12)
Redirected to http://example.org
Completed 302 Found in 76ms (ActiveRecord: 56.7ms)
---------------------------------------------------------------------------------
BorrowDirectControllerTest: test_redirects_to_whitelisted_url_on_validation_error
---------------------------------------------------------------------------------
[1m[36mRequest Load (1.6ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '7962fd58ac1e809c2d5337798bfe8064' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:16.142290')[0m
[1m[35mSQL (2.2ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 13, '2015-02-26 17:19:16.146336')
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 13, '2015-02-26 17:19:16.149796')[0m
[1m[35m (14.5ms)[0m COMMIT
[1m[36m (12.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.5ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '7962fd58ac1e809c2d5337798bfe8064', 'e4f2e6742054acb1be6068a6078c6b4d', 13, '0.0.0.0', '2015-02-26 17:19:16.182098')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 13, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:16.204965')[0m
[1m[35m (13.9ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "service_id"=>"BorrowDirect", "request_id"=>"13"}
[1m[36mRequest Load (1.1ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 13 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 13 ORDER BY id ASC
[1m[36m (0.8ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 13, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:16.232408')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
Redirected to http://example.org
Filter chain halted as :load_service_and_response rendered or redirected
Completed 302 Found in 25ms (ActiveRecord: 18.2ms)
---------------------------------------------------------------------------
BorrowDirectControllerTest: test_refuses_to_redirect_to_non_whitelisted_url
---------------------------------------------------------------------------
[1m[35mRequest Load (1.6ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '350c6fc9d477c84a2e1a098b806d302e' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (4.6ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:16.259166')
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 14, '2015-02-26 17:19:16.265050')[0m
[1m[35mSQL (0.8ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 14, '2015-02-26 17:19:16.269353')
[1m[36m (14.8ms)[0m [1mCOMMIT[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '350c6fc9d477c84a2e1a098b806d302e', 'e4f2e6742054acb1be6068a6078c6b4d', 14, '0.0.0.0', '2015-02-26 17:19:16.297672')[0m
[1m[35m (16.7ms)[0m COMMIT
[1m[36m (1.0ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:pickup_locations:\n- one\n- two\n- three\n', 14, 'BorrowDirect', 'bd_request_prompt', '2015-02-26 17:19:16.330061')
[1m[36m (14.5ms)[0m [1mCOMMIT[0m
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"redirect"=>"http://example.org", "pickup_location"=>"one", "service_id"=>"BorrowDirect", "request_id"=>"14"}
[1m[35mRequest Load (1.4ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 14 ORDER BY `requests`.`id` ASC LIMIT 1
[1m[36mServiceResponse Load (1.4ms)[0m [1mSELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 14 ORDER BY id ASC[0m
[1m[35mDispatchedService Load (1.2ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36m (5.3ms)[0m [1mBEGIN[0m
[1m[35mSQL (2.3ms)[0m INSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('BorrowDirect', 'in_progress', 14, '2015-02-26 17:19:16.370616', '2015-02-26 17:19:16.370616')
[1m[36m (15.3ms)[0m [1mCOMMIT[0m
[1m[35m (0.8ms)[0m BEGIN
[1m[36m (0.6ms)[0m [1mCOMMIT[0m
[1m[35m (1.4ms)[0m BEGIN
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: in_progress\n:error_user_message: \'\'\n', 14, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:16.396575')[0m
[1m[35m (15.5ms)[0m COMMIT
[1m[36mReferent Load (1.1ms)[0m [1mSELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 14 LIMIT 1[0m
[1m[35mReferentValue Load (1.1ms)[0m SELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (14)
Error: UmlautBorrowDirect Controller: Ignoring redirect URL which does not match whitelist: http://example.org
Rendered text template (0.0ms)
Completed 403 Forbidden in 82ms (Views: 7.6ms | ActiveRecord: 52.6ms)
BorrowDirect: Error placing request: VCR::Errors::UnhandledHTTPRequestError
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://bdtest.relais-host.com/dws/item/add
Body: {"PartnershipId":"BD","AuthorizationId":"4nOVJs-uc4_Mu4p3GgxhjX0wU8A","PickupLocation":"one","ExactSearch":[{"Type":"ISBN","Value":"121212"}]}
VCR is currently using the following cassette:
- /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml
- :record => :once
- :match_requests_on => [:method, :uri, :body]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:once) does not allow new requests to be recorded
to a previously recorded cassette. You can delete the cassette file and re-run
your tests to allow the cassette to be recorded with this request [4].
[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once
================================================================================
. Backtrace:
vcr (2.9.3) lib/vcr/request_handler.rb:97:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:112:in `on_unhandled_request'
vcr (2.9.3) lib/vcr/request_handler.rb:24:in `handle'
vcr (2.9.3) lib/vcr/library_hooks/webmock.rb:127:in `block in '
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `call'
webmock (1.20.4) lib/webmock/stub_registry.rb:28:in `block in register_global_stub'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `call'
webmock (1.20.4) lib/webmock/request_pattern.rb:36:in `matches?'
webmock (1.20.4) lib/webmock/stub_registry.rb:58:in `block in request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `each'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `detect'
webmock (1.20.4) lib/webmock/stub_registry.rb:57:in `request_stub_for'
webmock (1.20.4) lib/webmock/stub_registry.rb:50:in `response_for_request'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in `block in webmock_responses'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `yield'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `default'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in `do_get'
webmock (1.20.4) lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in `do_get_block'
httpclient (2.6.0.1) lib/httpclient.rb:974:in `block in do_request'
httpclient (2.6.0.1) lib/httpclient.rb:1082:in `protect_keep_alive_disconnected'
httpclient (2.6.0.1) lib/httpclient.rb:969:in `do_request'
httpclient (2.6.0.1) lib/httpclient.rb:822:in `request'
httpclient (2.6.0.1) lib/httpclient.rb:725:in `post'
borrow_direct (0.11.0) lib/borrow_direct/request.rb:70:in `request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:58:in `request_item_request'
borrow_direct (0.11.0) lib/borrow_direct/request_item.rb:80:in `make_request!'
umlaut_borrow_direct app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in `block in submit_request'
----------------------------------------------------------------------------
BorrowDirectControllerTest: test_validation_error_on_missing_pickup_location
----------------------------------------------------------------------------
[1m[36mDispatchedService Load (2.8ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 14 AND `dispatched_services`.`service_id` = 'BorrowDirect' ORDER BY `dispatched_services`.`id` ASC LIMIT 1[0m
[1m[35mRequest Load (6.8ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '2155146fd1cb0d7efa33e237f58e8a16' AND `requests`.`contextobj_fingerprint` = 'e4f2e6742054acb1be6068a6078c6b4d' AND `requests`.`client_ip_addr` = '0.0.0.0' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (11.5ms)[0m BEGIN
[1m[36mSQL (4.8ms)[0m [1mUPDATE `dispatched_services` SET `status` = 'failed_fatal', `exception_info` = '---\n:class_name: VCR::Errors::UnhandledHTTPRequestError\n:message: ! \"\\n\\n================================================================================\\nAn\n HTTP request has been made that VCR does not know how to handle:\\n POST https://bdtest.relais-host.com/dws/item/add\\n\n \\ Body: {\\\"PartnershipId\\\":\\\"BD\\\",\\\"AuthorizationId\\\":\\\"4nOVJs-uc4_Mu4p3GgxhjX0wU8A\\\",\\\"PickupLocation\\\":\\\"one\\\",\\\"ExactSearch\\\":[{\\\"Type\\\":\\\"ISBN\\\",\\\"Value\\\":\\\"121212\\\"}]}\\n\\nVCR\n is currently using the following cassette:\\n - /Users/jrochkind/code/umlaut_borrow_direct/test/vcr_cassettes/controller/refuses_to_redirect_to_non_whitelisted_url.yml\\n\n \\ - :record => :once\\n - :match_requests_on => [:method, :uri, :body]\\n\\nUnder\n the current configuration VCR can not find a suitable HTTP interaction\\nto replay\n and is prevented from recording new requests. There are a few ways\\nyou can deal\n with this:\\n\\n * If you\'re surprised VCR is raising this error\\n and want insight\n about how VCR attempted to handle the request,\\n you can use the debug_logger\n configuration option to log more details [1].\\n * You can use the :new_episodes\n record mode to allow VCR to\\n record this new request to the existing cassette\n [2].\\n * If you want VCR to ignore this request (and others like it), you can\\n\n \\ set an `ignore_request` callback [3].\\n * The current record mode (:once) does\n not allow new requests to be recorded\\n to a previously recorded cassette. You\n can delete the cassette file and re-run\\n your tests to allow the cassette to\n be recorded with this request [4].\\n\\n[1] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/debug-logging\\n[2]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/new-episodes\\n[3] https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/configuration/ignore-request\\n[4]\n https://www.relishapp.com/vcr/vcr/v/2-9-3/docs/record-modes/once\\n================================================================================\\n\\n\"\n:backtrace:\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:97:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:112:in\n `on_unhandled_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/request_handler.rb:24:in\n `handle\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/vcr-2.9.3/lib/vcr/library_hooks/webmock.rb:127:in\n `block in \'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:28:in\n `block in register_global_stub\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `call\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/request_pattern.rb:36:in\n `matches?\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:58:in\n `block in request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `each\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `detect\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:57:in\n `request_stub_for\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/stub_registry.rb:50:in\n `response_for_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:177:in\n `block in webmock_responses\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `yield\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `default\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:47:in\n `do_get\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/httpclient_adapter.rb:35:in\n `do_get_block\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:974:in\n `block in do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:1082:in\n `protect_keep_alive_disconnected\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:969:in\n `do_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:822:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/httpclient-2.6.0.1/lib/httpclient.rb:725:in\n `post\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request.rb:70:in\n `request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:58:in\n `request_item_request\'\n- /Users/jrochkind/.gem/ruby/1.9.3/gems/borrow_direct-0.11.0/lib/borrow_direct/request_item.rb:80:in\n `make_request!\'\n- /Users/jrochkind/code/umlaut_borrow_direct/app/controllers/umlaut_borrow_direct/controller_implementation.rb:50:in\n `block in submit_request\'\n', `updated_at` = '2015-02-26 17:19:16.458049' WHERE `dispatched_services`.`id` = 11[0m
[1m[35mSQL (3.7ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('121212', '2015-02-26 17:19:16.471406')
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 15, '2015-02-26 17:19:16.476380')[0m
[1m[35mSQL (0.9ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '121212', '121212', 1, 15, '2015-02-26 17:19:16.478521')
[1m[36m (19.7ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36m (64.3ms)[0m [1mCOMMIT[0m
[1m[35mSQL (1.5ms)[0m UPDATE `service_responses` SET `service_data` = '---\n:status: error\n:error_user_message: \'\'\n' WHERE `service_responses`.`id` = 24
[1m[36m (0.9ms)[0m [1mBEGIN[0m
[1m[35mSQL (3.1ms)[0m INSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: example.org\nHTTP_HOST: test.host\nHTTP_USER_AGENT: Rails Testing\n', '2155146fd1cb0d7efa33e237f58e8a16', 'e4f2e6742054acb1be6068a6078c6b4d', 15, '0.0.0.0', '2015-02-26 17:19:16.548897')
[1m[36m (22.2ms)[0m [1mCOMMIT[0m
[1m[35m (15.0ms)[0m COMMIT
Processing by BorrowDirectController#submit_request as HTML
Parameters: {"service_id"=>"BorrowDirect", "request_id"=>"15"}
[1m[36mRequest Load (1.3ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 15 ORDER BY `requests`.`id` ASC LIMIT 1[0m
[1m[35mServiceResponse Load (1.2ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` = 15 ORDER BY id ASC
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `created_at`) VALUES ('---\n:status: validation_error\n:error_user_message: You must choose a pickup location\n', 15, 'BorrowDirect', 'bd_request_status', '2015-02-26 17:19:16.579201')
[1m[36m (14.2ms)[0m [1mCOMMIT[0m
[1m[35mReferent Load (1.2ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` = 15 LIMIT 1
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (15)[0m
Redirected to http://test.host/resolve?umlaut.request_id=15&url_ver=Z39.88-2004&url_ctx_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Actx&ctx_ver=Z39.88-2004&ctx_tim=2015-02-26T12%3A19%3A16-05%3A00&ctx_id=&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rft.isbn=121212&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&req.ip=0.0.0.0
Filter chain halted as :load_service_and_response rendered or redirected
Completed 303 See Other in 31ms (ActiveRecord: 20.7ms)
----------------------------------------------------------------------------
BorrowDirectIntegrationTest: test_BD_timeout_displays_error_with_search_link
----------------------------------------------------------------------------
Started GET "/resolve?isbn=9789810743734" for 127.0.0.1 at 2015-02-26 12:19:16 -0500
Processing by ResolveController#index as HTML
Parameters: {"isbn"=>"9789810743734"}
[1m[35mRequest Load (1.5ms)[0m SELECT `requests`.* FROM `requests` WHERE `requests`.`session_id` = '50c2d92492a2dae3fd2c01fce6766449' AND `requests`.`contextobj_fingerprint` = '1f2487b5ab29a0f58587335258d7f8e0' AND `requests`.`client_ip_addr` = '127.0.0.1' ORDER BY created_at DESC, id DESC LIMIT 1
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35mSQL (1.1ms)[0m INSERT INTO `referents` (`isbn`, `created_at`) VALUES ('9789810743734', '2015-02-26 17:19:16.659612')
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `referent_id`, `created_at`) VALUES ('format', 'journal', 'journal', 16, '2015-02-26 17:19:16.661737')[0m
[1m[35mSQL (1.0ms)[0m INSERT INTO `referent_values` (`key_name`, `value`, `normalized_value`, `metadata`, `referent_id`, `created_at`) VALUES ('isbn', '9789810743734', '9789810743734', 1, 16, '2015-02-26 17:19:16.663818')
[1m[36m (14.1ms)[0m [1mCOMMIT[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `requests` (`http_env`, `session_id`, `contextobj_fingerprint`, `referent_id`, `client_ip_addr`, `created_at`) VALUES ('---\nSERVER_NAME: www.example.com\nREQUEST_URI: /resolve?isbn=9789810743734\nHTTP_HOST: www.example.com\nHTTP_ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\n', '50c2d92492a2dae3fd2c01fce6766449', '1f2487b5ab29a0f58587335258d7f8e0', 16, '127.0.0.1', '2015-02-26 17:19:16.684631')[0m
[1m[35m (14.2ms)[0m COMMIT
[1m[36m (0.7ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mDispatchedService Load (1.1ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO `dispatched_services` (`service_id`, `status`, `request_id`, `created_at`, `updated_at`) VALUES ('test_bd', 'queued', 16, '2015-02-26 17:19:16.716572', '2015-02-26 17:19:16.716572')[0m
[1m[35m (14.6ms)[0m COMMIT
[1m[36m (0.6ms)[0m [1mBEGIN[0m
[1m[35m (0.6ms)[0m COMMIT
[1m[36mRequest Load (1.2ms)[0m [1mSELECT `requests`.* FROM `requests` WHERE `requests`.`id` = 16 LIMIT 1[0m
[1m[35mReferent Load (1.0ms)[0m SELECT `referents`.* FROM `referents` WHERE `referents`.`id` IN (16)
[1m[36mReferentValue Load (1.1ms)[0m [1mSELECT `referent_values`.* FROM `referent_values` WHERE `referent_values`.`referent_id` IN (16)[0m
[1m[35mServiceResponse Load (1.1ms)[0m SELECT `service_responses`.* FROM `service_responses` WHERE `service_responses`.`request_id` IN (16) ORDER BY id ASC
[1m[36mDispatchedService Load (1.0ms)[0m [1mSELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` IN (16)[0m
[1m[35mDispatchedService Load (1.1ms)[0m SELECT `dispatched_services`.* FROM `dispatched_services` WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`service_id` = 'test_bd' ORDER BY `dispatched_services`.`id` ASC LIMIT 1
[1m[36mSQL (14.9ms)[0m [1mUPDATE `dispatched_services` SET `dispatched_services`.`status` = 'in_progress' WHERE `dispatched_services`.`request_id` = 16 AND `dispatched_services`.`id` = 12 AND `dispatched_services`.`status` = 'queued'[0m
[1m[35m (0.7ms)[0m BEGIN
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO `service_responses` (`service_data`, `request_id`, `service_id`, `service_type_value_name`, `display_text`, `notes`, `url`, `created_at`) VALUES ('---\n:display_text_i18n: bd_link_to_search.display_text\n:notes_i18n: bd_link_to_search.notes\n', 16, 'test_bd', 'bd_link_to_search', 'Check BorrowDirect for availability', 'May be available in BorrowDirect', 'http://example.com/redirect?query=', '2015-02-26 17:19:16.778223')[0m
[1m[35m (14.6ms)[0m COMMIT
BorrowDirect returned error on FindItem, resorting to a bd_link_to_search response instead.
* Returned error: #